Lost connection to MySQL server at 'reading initial communication packet',system error:0(示例代

Posted 卓源君

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Lost connection to MySQL server at 'reading initial communication packet',system error:0(示例代相关的知识,希望对你有一定的参考价值。

如果网上各种文档告诉你去配置/etc/my.cnf,你没找到的话,不防试试我这个,文件的位置在:

去里面找找看

注释掉bind-address

然后重置下密码:

use mysql

update user set authentication_string=password(\'wxhcj1314520\'),plugin=\'mysql_native_password\' where user=\'root\';

然后刷新一下:

flush privileges;

 

以上是关于Lost connection to MySQL server at 'reading initial communication packet',system error:0(示例代的主要内容,如果未能解决你的问题,请参考以下文章

MySQL导入数据提示Lost connection to MySQL server

MYSQL:Lost connection to MySQL server at 'reading initial communication packet', system erro

mysqldump报错 – Error 2013 Lost connection to MySQL server

Can't connect to MySQL server (hosted by strato) error: 2013 lost connection to mysql server at 'rea

MySQL报错解决方案:2013-Lost connection to MySQL server

Mysql查询某张表会出现 mysql lost connection to server during query 问题解决方法