mysql Lost connection to MySQL server at ‘reading initial communication packet

Posted

tags:

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

mysql 爆出,本地连接正常,远程链接无法链接,爆出错误
Lost connection to mysql server at ‘reading initial communication packet

大量无法远程链接的问题
1.iptables 导致 看看iptables -L

2.mysqld 下增加
skip-name-resolve
我加了发现不行
看下面

3.bind-adress
我发现mysqld 还有一句

bind-address = ::ffff:127.0.0.1

[mysqld]#bind-address = ::ffff:127.0.0.1local-infile=0datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sock# Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0# Settings user and group are ignored when systemd is used.# If you need to run mysqld under a different user or group,# customize your systemd unit file for mariadb according to the# instructions in http://fedoraproject.org/wiki/Systemdskip-name-resolve


以上是关于mysql Lost connection to MySQL server at ‘reading initial communication packet的主要内容,如果未能解决你的问题,请参考以下文章

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 问题解决方法