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

猜你喜欢

转载自blog.csdn.net/starzxf/article/details/83245035