《MYSQL數據庫遠程連接MySQL數據庫問題總結》要點:
本文介紹了MYSQL數據庫遠程連接MySQL數據庫問題總結,希望對您有用。如果有疑問,可以聯系我們。
MYSQL必讀?
MYSQL必讀1:出現ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (111)
?
- [root@cluster-00?~]#?mysql?-h?10.20.34.76?-u?root?-p?
- Enter?password:??
- ERROR?2003?(HY000):?Can't?connect?to?MySQL?server?on?'10.20.34.76'?(111)?
- [root@cluster-00?~]#?perror?111?
- OS?error?code?111:??Connection?refused?
- [root@cluster-00?~]#??
MYSQL必讀?
MYSQL必讀
MYSQL必讀?
MYSQL必讀原因1: 服務器10.20.34.76不能訪問或ping通.這個很好驗證.
MYSQL必讀原因2: MySQL服務沒有啟動.這個驗證也非常方便.
MYSQL必讀原因3: MySQL配置了參數skip-networking,注銷該參數即可
MYSQL必讀?
MYSQL必讀2: ERROR 2003 (HY000): Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (113)
- [root@cluster-00?~]#?mysql?-h?10.20.34.76??-uroot?-p?
- Enter?password:??
- ERROR?2003?(HY000):?Can't?connect?to?MySQL?server?on?'10.20.34.76'?(113)?
- ??
- [root@cluster-00?~]#?perror??113?
- OS?error?code?113:??No?route?to?host?
MYSQL必讀
MYSQL必讀關閉防火墻(不推薦)或是開放相關端口(默認為3306)后,問題即可解決.
MYSQL必讀?
MYSQL必讀3: ERROR 1045 (28000): Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)
- [root@cluster-00?~]#?mysql?-h?10.20.34.76??-uroot?-p?
- Enter?password:??
- ERROR?1045?(28000):?Access?denied?for?user?'root'@'192.168.9.224'?(using?password:?YES)?
- [root@cluster-00?~]# ?
MYSQL必讀原因:root賬戶權限不夠,可能僅僅只用于本地,不能遠程登錄.需要設置賬號權限.注意:這里僅僅是測試圖方便,正常情況是不應該開放root的遠程訪問權限的.出于安全因素考慮,一般應該關閉遠程訪問.
轉載請注明本頁網址:
http://www.snjht.com/jiaocheng/5776.html