我的ASP.net web表单网站使用的是MSSQL server,而站点web.cofig具有sql server连接字符串。但是我很惊讶为什么它试图连接我的sql数据库,尽管我的sql没有连接字符串。
发布于 2018-01-15 18:10:51
我不知道为什么..这也是我的问题
异常消息:
使用方法‘
’对用户'‘的主机'’进行mysql_native_password身份验证失败,并显示消息:用户''@'xxx‘(使用密码:NO)的访问被拒绝\r\n在MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)\r\n在MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset时在MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()\r\n )\r\n在MySql.Data.MySqlClient.NativeDriver.Open()\r\n在MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder设置中)\r\n在MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()\r\n中,在MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()\r\n中,在MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()\r\n中,在MySql.Data.MySqlClient.Driver.Open中,在MySql.Data.MySqlClient.MySqlConnection.Open中()\r\n在MySql.Web.Common.SchemaManager.GetSchemaVersion(String connectionString)\r\n在MySql.Web.Common.SchemaManager.CheckSchema(String connectionString,NameValueCollection配置)\r\n在System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings中,键入providerType)
我怀疑这发生在我安装mysql-community-5.7.20.0之后
更新:我刚刚卸载了所有的东西(mysql),它又正常了
https://stackoverflow.com/questions/48107370
复制相似问题