我想遠程連接到MySQL服務器。我遵循(1)的建議,並設置一個用戶在我將從遠程訪問的IP地址。遠程訪問MySQL連接錯誤
user$ mysql -u TestUser -p -h 129.169.66.149
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '129.169.66.149' (60)
我檢查了端口(默認3306)是否正確,IP地址是否正確。 MySQL也在運行。
從遠程計算機上,我可以成功地ping服務器
ping 129.169.66.149
64 bytes from 129.169.66.149: icmp_seq=48 ttl=63 time=1.010 ms
但是,當我使用Telnet:
TELNET 129.169.66.149
Trying 129.169.66.149...
telnet: connect to address 129.169.66.149: Operation timed out
telnet: Unable to connect to remote host
誰能指教?這是防火牆問題嗎?
(1) - https://superuser.com/questions/826896/access-wordpress-mysql-database-remotely
您需要讓MySQL偵聽所有接口,這意味着mysqld的綁定地址應該爲'0.0.0.0'。 – 2015-03-31 14:36:58
謝謝@ N.B。我曾嘗試過。沒有變化 – LearningSlowly 2015-03-31 16:43:03