Aborted_connects很高分析

mysqladmin ext | grep Abort
| Aborted_clients                | 44458        |
| Aborted_connects               | 546857        |

最近发现服务器这个两个值很高,没过几分钟就增长几十,查看手册

If a client successfully connects but later disconnects improperly or is terminated, the server increments theAborted_clients status variable, and logs an Aborted connection message to the error log. The cause can be any of the following:

If a client is unable even to connect, the server increments the Aborted_connects status variable. Unsuccessful connection attempts can occur for the following reasons:

跟踪--使用tcpdump

tcpdump -s 1500 -w tcp.out port 3306
开另一个窗口,tail -f tcp.out | strings   可以看到有连接错误信息

strings tcp.out > tcp.txt
vim tcp.txt

可以看到具体的信息

Host 'XXX.XX.XX.XXX' is not allowed to connect to this MySQL server
Access denied for user 'root'@'XXX.XX.XX.XXX' (using password: YES)0N



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值