ERROR 2003 (HY000): Can't connect to MySQL server on "" (113)

服务器为centos6.

这个原因是因为防火墙的问题

在mysql服务端执行

service iptables stop 
chkconfig iptables off #永久关闭防火墙 看情况执行

然后在client端

mysql -uroot -proot -hfzk.com

正常登录

posted @ 2017-04-19 20:27  bad_boy_f  阅读(4794)  评论(0编辑  收藏  举报