[英]MySQL “Unable to connect to host [host] because access was denied.”
我在遠程連接到MySQL服務器時遇到問題。 我知道我的用戶在任何主機上都設置了'%'通配符,因此我應該可以訪問服務器。 我可以使用自己的憑據在MySQL服務器上本地登錄,而不能遠程登錄。
我在my.cnf中的設置如下所示:
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld]
user = mysql
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#
bind-address = 128.xxx.xxx.xxx
我正在連接以下參數(使用Coda2 GUI-但問題似乎與Coda2無關):
Server: 128.xxx.xxx.xxx
Port: 3306
Username: sadmicrowave
Password: my_mysql_password
完整的錯誤消息是:
Unable to connect to host uslonsweb003 because access was denied.
Double-check your username and password and ensure that access from your current location is permitted.
MySQL said: Access denied for user 'sadmicrowave'@'128.xxx.xxx.xxx' (using password: YES)
我可以使用IP地址和3306遠程登錄到服務器,因此我知道服務器正在該端口上偵聽...
到底他媽發生了什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.