ERROR 2003 : Can't connect to MySQL server on "host" (0)

1.telnet host 'xx' 会发现端口telnet不通、

2.开放防火墙

 /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 

service iptables save

/bin/systemctl restart  iptables.service

原文地址:https://www.cnblogs.com/black-humor/p/9018557.html