经常会有使用mysql的朋友会发现error.log中有大量的
[Warning] Aborted connection 。。。。。(Got an error reading communication packets)
对于这样的警告日志,大致从下面两个方面排查
1网络问题,网络是否存在问题,花费了超过 connect_timeout
的时间去得到一个数据包
2账号密码是否正确
3客户端是否有权限连接该数据库
4连接包是不是有带有正确的信息
如果都不是上面的问题,可以尝试加大max_allowed_packet_size,或者使用php的短连接,不使用长连接,再或者每次查询完成后关闭连接,避免The client had been sleeping more than wait_timeout
or interactive_timeout
seconds without issuing any requests to the server.(客户端连接休眠时间超过wait_timeout,interactive)
实在没招了,可以大概general query log,把所有查询的sql都列出来。
还是解决不了,就是更底层的原因了,网络设备故障等等。详细见参考
参考http://dev.mysql.com/doc/refman/5.1/en/communication-errors.html
分享到:
相关推荐
user: ‘root’ host: `localhost’ (Got timeout reading communication packets) MYSQL server has gone away 引起这个原因是不可怕的.原因是更改了系统的断开时间. mysql>show gloable variables like “%time...
有时候,连接MySQL的会话经常会异常退出,错误日志里会看到”Got an error reading communication packets”类型的告警。本篇文章我们一起来讨论下该错误可能的原因以及如何来规避。 1.状态变量Aborted_clients和...
Wireshark- A Guide to Color My Packets
Route Packets, Not Wires On-Chip Interconnection Networks
北大POJ1017-Packets 解题报告+AC代码
这是关于小波的电子书,高清,最新版本,经典著作,英文版
Error Correction Coding - Mathematical Methods and Algorithms (Source Files Contained).pdf Error Correction Coding Mathematical Methods and Algorithms Todd K. Moon Utah State University @ E ! C I E N...
一个算法的实现:使用分支界限法求解0-1背包问题
802.1x packets and setup
packets-rain-page.zip
TRAITEMENT DES EMAGE
This problem is now just reported as an error (and BurnInTest) continues. - When BurnInTest crashes, it should now generate a "minidump" file to help debug which system component caused the failure...
移动格子势中稳定的物质波包,海文华,李泽军,考虑一个由移动格子势驱动的玻色-爱因斯坦凝聚体,导出一维Gross-Pitaevskii方程精确的行波解,它满足光学势和原子相互作用之间的平衡�
Herein, we Introduce packets Interleaving CCSDS file delivery protocol (PI-CFDP) developed to cope with frequent packet losses Inherent In deep-space communications. It is designed by applying ...
Packet filtering - Catching the cool packets.rar
实时网络资源包动态规划的一个入门讲解 得克萨斯农工学院的Hou老师的大作
Sample code to make router to accept/reject particular packets from a destination.
Wildpackets公司的Omni分布式故障分析平台获得Network Computing杂志“最佳千兆网络分析探针”奖项,该荣誉证明omni是所有经过该试验室严格测试的产品或者服务中最优秀的产品。 Omni平台实现了从单一控制台进行全网...
USB4 1.0 ECN - Storing Credit and TMU Packets.pdf