Lost connection to MySQL server at ‘reading initial communication packet', system error: 0 mysq
Posted 木子小僧
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Lost connection to MySQL server at ‘reading initial communication packet', system error: 0 mysq相关的知识,希望对你有一定的参考价值。
在用Navicat for mysql远程连接mysql的时候,出现了
Lost connection to MySQL server at ‘reading initial communication packet\', system error: 0
好恶心,服务器重启了一次,就一上午都是在处理mysql的各种问题。
第一步:找到:my.cnf文件
其实我也不知道在哪里,用指令帮我们找吧。
find / -name my.cnf
找到了后。
第二步:vi my.cnf
vi my.cnf
在mysqld下添加skip-name-resolve
保存。
问题解决,可以连上了。
以上是关于Lost connection to MySQL server at ‘reading initial communication packet', system error: 0 mysq的主要内容,如果未能解决你的问题,请参考以下文章