2014-12-19 129 views
1

我有一個phpMyAdmin與MySQL的遠程機器上,我可以連接與瀏覽器沒有問題。遠程訪問MySql通過遠程phpMyAdmin

但是,當我試圖在MySQL從.NET程序在我的機器連接一個數據庫,我收到一條錯誤消息:

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

我試圖配置它喜歡它在這裏解釋:http://www.devside.net/wamp-server/accessing-mysql-or-phpmyadmin-from-outside 創建與在phpMyAdmin密碼新用戶,並在我的app.config改變的config.inc.php

然後,我有與連接字符串:

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

但是當我運行我的程序時,我仍然收到相同的錯誤信息。任何想法如何解決這個問題?

回答

0

最後我解決了它在phpMyAdmin中添加了另一個具有相同名稱「newUserName」和密碼,並與主機值「%」