Can't connect to MySQL server的解决办法
时间:2024-01-19 07:30:31
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)
标签:MySQL,server
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python多线程互斥锁与死锁
2023-11-10 14:16:28
![](https://img.aspxhome.com/file/2023/2/121922_0s.png)
python中前缀运算符 *和 **的用法示例详解
2022-05-19 08:41:31
AI经典书单 人工智能入门该读哪些书?
2023-06-24 07:11:00
![](https://img.aspxhome.com/file/2023/6/131826_0s.jpg)
SQL对时间处理的语句小结
2011-12-01 07:53:04
Python 一行代码能实现丧心病狂的功能
2023-07-25 08:32:17
![](https://img.aspxhome.com/file/2023/8/61428_0s.png)
用户体验设计中用到的统计学方法
2009-07-12 08:26:00
python 密码加密与解密的实现
2023-07-31 04:32:38
![](https://img.aspxhome.com/file/2023/3/61433_0s.png)
ubuntu kylin 14.10下多个mysql 5.7.14安装教程
2024-01-24 12:50:13
静态页面实现文章点击数统计的js方法
2008-01-23 19:17:00
玩转Python发短信的实现
2021-09-17 20:38:54
![](https://img.aspxhome.com/file/2023/1/79801_0s.jpg)
Pandas数据分析固定时间点和时间差
2022-03-05 20:24:07
![](https://img.aspxhome.com/file/2023/4/127894_0s.png)
python super函数使用方法详解
2022-04-15 21:45:17
PHP PDOStatement::fetchAll讲解
2023-06-14 15:54:26
SQL查询超时的设置方法(关于timeout的处理)
2024-01-15 21:07:55
MySQL8.0.23安装超详细教程
2024-01-26 05:06:18
![](https://img.aspxhome.com/file/2023/0/78200_0s.png)
TensorFlow的权值更新方法
2022-12-24 21:41:08
Python实现批量修改图片格式和大小的方法【opencv库与PIL库】
2021-10-08 09:04:29
![](https://img.aspxhome.com/file/2023/5/89055_0s.png)
Node.js API详解之 Error模块用法实例分析
2024-05-13 09:58:47
Python中random模块生成随机数详解
2023-06-13 16:11:52
pytorch cuda上tensor的定义 以及减少cpu的操作详解
2022-08-01 15:34:02