[英]Login failed for user (Microsoft SQL Server error:18456)
Some background on the issue: Windows' Safe Mode is an essential tool.该问题的一些背景:Windows 的安全模式是必不可少的工具。 On computers infected with malware or crashing because of buggy drivers, Safe Mode starts your PC with a minimal set of drivers and services.在感染恶意软件或因驱动程序错误而崩溃的计算机上,安全模式会使用最少的驱动程序和服务集启动您的 PC。 No third-party software or drivers get loaded, and even the built-in Windows stuff is limited to just what's necessary.没有第三方软件或驱动程序被加载,甚至内置的 Windows 东西也仅限于必要的东西。 Safe Mode is a great way to remove problem-causing software—like malware—without that software getting in the way.安全模式是删除引起问题的软件(如恶意软件)的好方法,而该软件不会妨碍您。 It also provides an environment where you may find it easier to roll back drivers, and use certain troubleshooting tools.它还提供了一个环境,您可能会发现回滚驱动程序和使用某些故障排除工具更容易。
My former Windows account was blocked in which I created another through safe mode.我以前的 Windows 帐户被阻止,我通过安全模式在其中创建了另一个。
Now when I try to login to SQL Server, I get this error:现在,当我尝试登录 SQL Server 时,出现此错误:
Login failed for user (Microsoft SQL Server, error: 18456)用户登录失败(Microsoft SQL Server,错误:18456)
I'm guessing that you are using windows authentication to login to your SQL Server instance.我猜您正在使用 Windows 身份验证登录到您的 SQL Server 实例。 Since you installed your current instance with the other user account and trying to logging in with different one you get this error.由于您使用其他用户帐户安装了当前实例并尝试使用其他用户帐户登录,因此您会收到此错误。
You have two options:您有两个选择:
Create another instance with current user account.使用当前用户帐户创建另一个实例。
Login to windows with your previous account, login to SQL server, change password for sa
account and you can login from anywhere with sa
user and password.使用您以前的帐户登录 Windows,登录 SQL 服务器,更改sa
帐户的密码,您可以使用sa
用户名和密码从任何地方登录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.