欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > 数据库 >内容正文

数据库

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

发布时间:2023/12/19 数据库 42 豆豆
生活随笔 收集整理的这篇文章主要介绍了 mysql的initial_mysql Lost connection to MySQL server at ‘reading initial communication packet 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

大量无法远程链接的问题

1.iptables 导致 看看iptables -L

2.

3.bind-adress

我发现

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的initial_mysql Lost connection to MySQL server at ‘reading initial communication packet的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。