简体   繁体   English

用户登录失败(Microsoft SQL Server 错误:18456)

[英]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:您有两个选择:

  1. Create another instance with current user account.使用当前用户帐户创建另一个实例。

  2. 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.

相关问题 用户“sa”登录失败。 (Microsoft SQL Server,错误:18456) - Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456) 用户的Microsoft SQL Server错误18456登录失败 - Microsoft sql server error 18456 login failed for user SQL Server登录失败,出现用户错误18456 - SQL Server login failed for user error 18456 登录微软 SQL 服务器报错:18456 - Login to Microsoft SQL Server Error: 18456 Linux上的BCP实用程序:NativeError = 18456错误= [unixODBC] [Microsoft] [SQL Server的ODBC驱动程序17] [SQL Server]用户登录失败 - BCP utility on linux: NativeError = 18456 Error = [unixODBC][Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 无法连接到数据库。 (pyodbc.Error) [Microsoft][用于 SQL 服务器的 ODBC 驱动程序 17]用户“%user%”登录失败。 (18456) (SQLDriverConnect) - Could not connect to the database. (pyodbc.Error) [Microsoft][ODBC Driver 17 for SQL Server]Login failed for user '%user%'. (18456) (SQLDriverConnect) IIS无法连接到SQL Server 2012数据库; 用户登录失败。本机错误代码:18456:消息: - IIS cannot connect to SQL Server 2012 database ; Login failed for user .. Native Error Code:18456: Message: 用户'Administrator'登录失败。错误18456 - Login failed for user 'Administrator'.error 18456 用户“SQL 登录”登录失败。 原因:找不到与提供的名称匹配的登录名 [SERVER IP] 18456 - Login failed for user 'SQL Login'. Reason: Could not find a login matching the name provided [ SERVER IP] 18456 Microsoft SQL 服务器,错误:18456 通过 SQL 服务器身份验证使用“sa”登录 - Microsoft SQL Server, Error: 18456 by login with "sa" through SQL Server Authentication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM