Lost connection to MySQL server at 'reading initial communication packet', system error: 111
这种现象还不是不断重复的,出现的频率不确定,疑似mySQL数据丢包。google之后,得到解决办法,通过修改my.cnf
1. 注释掉 # skip-networking
2. 给MYSQL绑定IP bind-address = 123.45.67.89 # server IP address
3. 加入skip-name-resolve 不对域名做反向解析
4. max_allowed_packet = 32M
阅读(1536) | 评论(0) | 转发(0) |