1. 程式人生 > >ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.10' (111) 客戶端連線 centos 7 mysql 資料庫失敗

ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.10' (111) 客戶端連線 centos 7 mysql 資料庫失敗

參考 https://stackoverflow.com/questions/1673530/error-2003-hy000-cant-connect-to-mysql-server-on-127-0-0-1-111

排查了 /etc/my.cnf 裡面的 bind-address 等問題,如果還不行 請執行試下

/bin/systemctl stop firewalld.service
/bin/systemctl disable firewalld

centos 7 防火牆是 firewall , 不是 iptables