sql server installation

The first installation of sql server is the 2016 version, because [the system configuration of the win7-64 version is relatively low], it was unsuccessful.

The second time I installed the 2012 version, when [Database Engine Configuration], I chose [Add Current User], and when I needed to add a user later, I chose [Add Current User], which caused the installation to fail. This is mainly because my computer The user name and password are set to log in to [Computer-Right-Click-Manage-Local Users and Groups], and the Administrator in the user and group uses the corresponding management and mapping permissions, and the current user I added during installation is my computer login user , it has no corresponding management and mapping relationship. Therefore, the error [No mapping between account name and security ID is completed] will be reported during the last step of installation.

The 2012 version was reinstalled for the third time, and an error was reported during the installation process: [The instance name has already been used].

[Solution] Mainly refer to the blog [https://blog.csdn.net/xyy410874116/article/details/26349927]

Step 1: Uninstall.

1. Enter "appwiz.cpl" in the run box to open the control panel, find something about sql server 2012, and uninstall it.

during uninstallation

[Select an instance] In this step, the instance from which the function is to be deleted [Select: the one that was prompted by the previous error message [this instance has been used]].

【Select function】This step:【Select all】-【Next】

The follow-up is basically [Next]

Step 2: Reinstall sql server2012.

during installation

In order to use only the necessary functions, in the [Function Selection] step, [Instance Function] only selects [Database Engine Service] + [SQL Server Replication], and [Shared Function] only selects [Administrative Tools - Basic] + [ Complete management tools].

[Instance configuration] In this step, select [Default instance]

In the [Database Engine Configuration] step, select [Mixed sql server authentication and Windows authentication] - you need to enter a password, for example, I enter 123456, point to the sql server here, add - select administrator, (because in my computer, the administrator has Administrative permissions have the relationship between corresponding users and groups)

Everything else is basically [Next]. Successful installation.

--------------------------------------

When logging in, sql server2012 windows cannot connect to the server error 18456.

Solution: refer to [https://blog.csdn.net/xiaoshiyiqie/article/details/52534323]

Log in with sa, the password is entered during installation: 123456

After logging in: File - New - Query using the current connection

Enter the command: CREATE LOGIN [sandy-PC\sandy] FROM WINDOWS Click the execute button, then log out of sa and log in with windows.

Among them, sandy-PC\sandy in the above command line is the user name prompted by Windows when logging in, and the square brackets [] in the command should be retained.

----------------------------------------

To use sql server, you need to start the service. There are two methods:

Method 1. Computer - right click - management - services and applications - sql server configuration manager - sql server service

Method 2. All programs - find sqlserver2012 - configuration tool - sql server configuration manager - [the following steps are the same as method 1]

-------------------------

Start your sql journey :)

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325565125&siteId=291194637