Error 2013(HY000):Lost connection to MySQL server at 'reading initial communication packet',system error 104
配置中添加了skip-name-resolve没用,重启mysql服务也没用。配置中添加了白名单,防火墙也添加了白名单。
mysql配置
还有什么办法没?
Error 2013(HY000):Lost connection to MySQL server at 'reading initial communication packet',system error 104
[linux系统]
1、检查mysql白名单中是否添加对方地址;
2、检查“my.cnf”中是否添加 “skip-name-resolve” ;
3、网络人员检查,是否配置了多个防火墙,白名单中没有添加放行地址(重点;比如:外网访问内部服务器的、内部服务器之间的访问,外网进入内部后,内部进行放行的;)这个位置就是有两个墙,内部访问的墙开白名单,外部的没有。所以一直连接不上mysql。
注:可以“telent”通地址,但是抓包的时候,显示没有抓到。可能是中间有个墙,但地址是怎么通的?不明所以!
4、检查用户添加ip主机权限
grant select,create,drop,update,alter on *.* to '用户名'@'ip地址' identified by 'xxxxxx' with grant option;
-- 刷新权限
FLUSH PRIVILEGES;