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
阅读更多
个人分类: mysql
上一篇Mysql连接不上
下一篇tcpdump常用命令
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭