1,本地链接服务器链接不上
Connection to project_[email protected] failed. [08S01] Communications link failure. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server
这是因为mysql里面的配置没有配置你本机
1,找到mysql文件夹,然后找到内部的mysqld.conf文件2,修改里面的bind-address,修改成你的ip或者是0.0.0.0(任何ip都允许) cd /etc/mysql/mysqld.conf.dvim mysqld.conf 修改bind-address,并把之前屏蔽掉bind-address = 0.0.0.0
原文地址:https://www.cnblogs.com/52forjie/p/10191862.html
时间: 2024-10-12 05:23:42