简体   繁体   中英

Remote access MySql via remote phpMyAdmin

I have a phpMyAdmin with MySQL on a linux remote machine to which I can connect with no problem with a browser.

But when I am trying to connect a DB in MySQL from a .NET program in my machine, I am getting an error message:

Authentication to host 'theIpNumber' for user 'newUserName' using method 'mysql_native_password' failed with message: Access denied for user 'newUserName'@'myMachineName' (using password: YES)

I tried to configured it like it is explained here: http://www.devside.net/wamp-server/accessing-mysql-or-phpmyadmin-from-outside creating a new user with password in phpMyAdmin and changing the config.inc.php

Then in my app.config I have the connection string with:

connectionString="server=theIpNumber;UserId=newUserName;Password=newUserPassword;database=theDB"

But I am still getting the same error message when I run my program. Any idea how to solve this?

最后,我解决了该问题,在phpMyAdmin中添加了另一个具有相同名称“ newUserName”和密码,且主机值为“%”的用户

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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