Mysql Lost connection to MySQL server at ‘reading initial communication packet', system error: 0
Posted zqyw
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mysql Lost connection to MySQL server at ‘reading initial communication packet', system error: 0相关的知识,希望对你有一定的参考价值。
在用Navicat for mysql远程连接mysql的时候,出现了
Lost connection to MySQL server at ‘reading initial communication packet‘, system error: 0
修改my.cnf文件(windows为my.ini)
一般在mysql的安装目录,/etc/mycnf。
在my.cnf配置文件中的[mysqld]区域添加skip-name-resolve,看网友说的是跳过mysql连接的DNS反向解析功能,这样能很好地提高mysql性能。在这种情况下,就只能使用MySQL授权表中的IP来连接mysql服务了。
参考:https://www.cnblogs.com/leeke98/p/9018045.html
以上是关于Mysql 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 问题解决方法