SqlException(0x80131904):用户'db123'的登录失败 [英] SqlException (0x80131904): Login failed for user 'db123'

查看:192
本文介绍了SqlException(0x80131904):用户'db123'的登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在服务器上(即并行plesk服务器)上载网站时,出现此错误.我在plesk服务器上创建表,然后选择SQL Server2012.但是我认为这是一个连接字符串错误.如果您知道此错误,请指导我.

I get this error when I upload the website on the server, ie parallels plesk server. I create the tables on the plesk server and selects SQL server 2012. But I think this is a connection string error. If you know about this error please guide me.

"/"应用程序中的服务器错误.用户"db123"的登录失败.说明:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪,以获取有关错误及其在代码中起源的更多信息.

Server Error in '/' Application. Login failed for user 'db123'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

异常详细信息:System.Data.SqlClient.SqlException:用户'db123'登录失败.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'db123'.

源错误:

在执行当前Web请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来标识有关异常的来源和位置的信息.

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

推荐答案

错误提示您正在尝试使用不存在或存在但用户提供错误密码的用户db123连接到SQL Server.

The Error say you are trying to connect to SQL Server with user db123 which is not exists or exists but you provide wrong password.

解决问题

  • 通过plesk面板检查db123登录名是否存在于您的SQL Server上,并且是否存在于数据库用户中
  • 打开您的web.config文件以找到连接字符串"部分并查看密码,然后检查db123登录密码是否相同
  • 尝试使用您的web.config中提供的用户名和密码从本地SQL Server Management Studio连接到您的SQL Server(主机上),以查看是否一切正常

这篇关于SqlException(0x80131904):用户'db123'的登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆