Can’t connect to MySQL server的解决办法

数据库评论617字数 122阅读模式

ERROR 2003 (HY000): Can't connect to MySQL server on '*.*.*.*' (113)的解决办法
1.查看配置文件:

skip-networking #注释掉 因为它是屏蔽掉一切TCP/IP连接很文博客-https://www.zhenjiekeji.com/44577.html

bind-address = 127.0.0.1 #它和上一个选项是异曲同工,要想远程连接,也得注释掉很文博客-https://www.zhenjiekeji.com/44577.html

2.如果以上工作都做过还是出现: 很文博客-https://www.zhenjiekeji.com/44577.html

ERROR 2003 (HY000): Can't connect to MySQL server on '*.*.*.*' (113),那就得考虑防火墙的问题了,关掉防火墙/etc/rc.d/init.d/iptables stop很文博客-https://www.zhenjiekeji.com/44577.html

修改完后需要 restart mysql (/etc/init.d/mysql restart)很文博客-https://www.zhenjiekeji.com/44577.html 很文博客-https://www.zhenjiekeji.com/44577.html

weinxin
我的微信
微信号已复制
扫一扫更精彩
大家的支持是我更新的动力!!!
匿名

发表评论

匿名网友