Error: 18456 when SQL Server uses the login name to connect to the database

Article directory


image-20210512091605701

image-20210512091618035

Error: 18456Authentication failed due to wrong password or user name. If the user name and password are correct, the login name does not have permission to connect to the database engine, and the login permission has also been ruthlessly deprived. Just enable the server [SQL Server authentication mode]


Solution

Enter the database manager in windows authentication mode

image-20210512092806104

Right-click [Server] and select [Properties]

image-20210512091946207

Modify server authentication [SQL Server and Windows authentication mode], enable SQL Server login

image-20210512092016568

Reboot, the configuration takes effect

image-20210512092037702

Right-click [Server] and select [Restart]

image-20210512092122984

After restarting, connect again using the login

image-20210512092418692

Display [login name] connection is successful

image-20210512092444729


People are never static, and life will chase you to be reborn again and again. As long as you are willing, you will always have the opportunity to become a person who keeps moving forward, and become the one you like.

Guess you like

Origin blog.csdn.net/qq_20185737/article/details/129208554