简体   繁体   English

无法连接到Visual Studio中的MySQL数据库

[英]Can't connect to MySQL database in Visual Studio

I have a WCF Project in Visual Studio 2010. I have a MySQL database to which I want to connect. 我在Visual Studio 2010中有一个WCF项目。我有一个要连接的MySQL数据库。 I installed MySQL Connector 6.6.5. 我安装了MySQL Connector 6.6.5。 I click Server Explorer -> Add Connection, choose MySQL Data Provider, enter the host name, the username, password, but it doesn't connect to the database, and shows a message (when I click "Test Connection"): 我单击服务器资源管理器->添加连接,选择MySQL数据提供程序,输入主机名,用户名,密码,但它未连接到数据库,并显示一条消息(当我单击“测试连接”时):

"Authentication to host ** for user ** using method 'mysql_native_password' failed with message: Access denied for user * @IP_address (using password: YES)" “使用方法'mysql_native_password'对用户**进行主机**的身份验证失败,并出现消息:用户* @IP_address的访问被拒绝(使用密码:是)”

How can I solve this problem and connect to the database? 如何解决此问题并连接到数据库?

if you had install phpmyadmin, you can check permission and credential information please see my screenshot for detail info. 如果您已安装phpmyadmin,则可以检查权限和凭据信息,请参阅我的屏幕快照以获取详细信息。 I had to change my listening port to :90 cos I am also running IIS like you.You can get Xampp(to get phpmyadmin) from here. 我不得不将侦听端口更改为:90 cos,我也像您一样运行IIS。您可以从此处获取Xampp(获取phpmyadmin)。 http://www.apachefriends.org/en/xampp-windows.html http://www.apachefriends.org/en/xampp-windows.html

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM