Can't connect to MySQL server的解决办法_MySQL
程序员文章站
2024-02-15 23:14:41
...
bitsCN.com
1.查看配置文件:
skip-networking #注释掉 因为它是屏蔽掉一切TCP/IP连接
bind-address = 127.0.0.1 #它和上一个选项是异曲同工,要想远程连接,也得注释掉
2.如果以上工作都做过还是出现:
ERROR 2003 (HY000): Can't connect to MySQL server on '*.*.*.*' (113),那就得考虑防火墙的问题了,关掉防火墙/etc/rc.d/init.d/iptables stop
修改完后需要 restart mysql (/etc/init.d/mysql restart)
bitsCN.com
skip-networking #注释掉 因为它是屏蔽掉一切TCP/IP连接
bind-address = 127.0.0.1 #它和上一个选项是异曲同工,要想远程连接,也得注释掉
2.如果以上工作都做过还是出现:
ERROR 2003 (HY000): Can't connect to MySQL server on '*.*.*.*' (113),那就得考虑防火墙的问题了,关掉防火墙/etc/rc.d/init.d/iptables stop
修改完后需要 restart mysql (/etc/init.d/mysql restart)
bitsCN.com
推荐阅读
-
Can't connect to MySQL server的解决办法_MySQL
-
Navicat for Mysql2003-can's connect to MySQL server on'loc_MySQL
-
php运行提示Can''t connect to MySQL server on ''localhost
-
php运行提示Can't connect to MySQL server on 'localhost'的解决方法
-
Can't connect to MySQL server的解决办法
-
mysql-mmm搭建报错can't connect to monitor daemon
-
在PHP+Apache+MySQL环境下(windows系统),连接SQLServer数据出现“can not find driver”问题的解决办法
-
解决MYSQL出现Can''t create/write to file ''#sql_5c0_0.MYD''的问题
-
mysql-mmm搭建报错can't connect to monitor daemon
-
is not allowed to connect to this MySQL server解决办法