Mysql 用户“abc1234”@“WIN-TQV06J8SPLP”的访问被拒绝(使用密码:是)]
我是一个新手在主持一个网站。这是我第一次将我的项目上传到托管站点。但我面临一个错误,我无法从谷歌找到任何有用的解决方案 问题如下: 我可以访问我网站的其他页面,例如:mywebsite.com/login.aspx 但当我访问需要从数据库检索数据的页面时,我得到了这个 使用方法对用户“abc1234”的主机“twinjoin.com”进行身份验证 “mysql\u本机\u密码”失败,消息为:用户访问被拒绝 'abc1234'@'WIN-TQV06J8SPLP'使用密码:是] 这是否可能是一家使用localhost作为数据库MySQL的托管公司? 我想应该是服务器的IP地址 这是它在phpmyadmin-数据库服务器信息中的外观Mysql 用户“abc1234”@“WIN-TQV06J8SPLP”的访问被拒绝(使用密码:是)],mysql,asp.net,webforms,web-config,Mysql,Asp.net,Webforms,Web Config,我是一个新手在主持一个网站。这是我第一次将我的项目上传到托管站点。但我面临一个错误,我无法从谷歌找到任何有用的解决方案 问题如下: 我可以访问我网站的其他页面,例如:mywebsite.com/login.aspx 但当我访问需要从数据库检索数据的页面时,我得到了这个 使用方法对用户“abc1234”的主机“twinjoin.com”进行身份验证 “mysql\u本机\u密码”失败,消息为:用户访问被拒绝 'abc1234'@'WIN-TQV06J8SPLP'使用密码:是] 这是否可能是一家使用
Server: 127.0.0.1 via TCP/IP
Server type: MySQL
Server version: 5.1.73-community - MySQL Community Server (GPL)
Protocol version: 10
User: abc1234@localhost
Server charset: UTF-8 Unicode (utf8)
下面是我的web.config:
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime maxRequestLength="10000" />
<authentication mode="Forms">
<forms loginUrl="Login.aspx">
</forms>
</authentication>
<customErrors mode="Off" />
</system.web>
<connectionStrings>
<add name="twinjointdbConnectionString" connectionString="Server=mywebsite.com;Database=abc1234_db;Uid=abc1234;Pwd=asd!@#@!" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<system.webServer>
<defaultDocument>
<files>
<add value="home.aspx" />
</files>
</defaultDocument>
</system.webServer>
<system.data>
<DbProviderFactories >
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
</configuration>
希望这里的专业人士能帮上忙。谢谢。检查您的连接字符串这里有一个相同的链接 它通常无法读取密码字段,因此将其视为空白,这样您就可以获得“是”的密码