ERROR 2013 (HY000): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0

开始以为是远程TCP/IP  root只能在localhost访问 ,后来新建用户,改为%后还是无果。搜索资料,尝试修改my.cnf配置问题建后问题消失。

 

修改mysql配置文件

vi 
/etc/my.cnf

[mysqld]段加skip
-name-resolve
 
重启mysql
service mysqld restart  

完成后,再次尝试连接,问题解决。

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-01-01
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案