MYSQL [Warning] Aborted connection 42355 to db

这篇博客主要讨论了MySQL出现Aborted connection错误的问题,表现为日志中频繁出现Got timeout reading communication packets警告。博主提供了解决方案,包括在my.cnf中设置interactive_timeout和wait_timeout为120秒,并解释了这两个参数的作用。此外,还提到了Java连接池配置,特别是使用C3P0连接池来避免此类问题,以确保数据库连接的有效管理。
摘要由CSDN通过智能技术生成
1,问题现象:在/db/mysql/log/mysql.err日志中出现大量的如下信息(web用的是tomcat7.0,设置连接超时时间为100秒):
[root@lovebuy114 ~]# tail -f /db/mysql/log/mysql.err 
2015-04-17 09:35:47 24074 [Warning] Aborted connection 42355 to db: 'memberunion2' user: 'zhanghui' host: '172.16.151.112' (Got timeout reading communication packets)
2015-04-17 09:35:47 24074 [Warning] Aborted connection 42365 to db: 'memberunion2' user: 'zhanghui' host: '172.16.151.112' (Got timeout reading communication packets)
2015-04-17 09:35:47 24074 [Warning] Aborted connection 42366 to db: 'memberunion2' user: 'zhanghui' host: '172.16.151.112' (Got timeout reading communication packets)
2015-04-17 09:35:47 24074 [Warning] Aborted connection 42376 to db: 'memberunion2' user: 'zhanghui' host: '172.16.151.112' (Got timeout reading communication packets)
2015-04-17 09:35:47 24074
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值