数据库访问异常的状态记录以及报错信息

来源:这里教程网 时间:2026-03-01 17:11:27 作者:

1. 网络访问异常的系统状态分类 Aborted_connects: 建立connect过程中的异常,tcp握手已经完成之后,在mysql握手阶段在交互协议时的异常。  Aborted_clients:  连接建立以后的运行中,client端不能给出正常反馈的异常。   2. 建立connect过程中的异常,tcp握手已经完成之后,在mysql握手阶段在交互协议时的异常。(Aborted_connects) Aborted_connects会增加 (1).密码错误&权限错误: 数据库握手时,对鉴权信息检查,没有通过。 报错信息: Acdess denied  系统的状态记录反应: Aborted_connects 会增加 mysql> show status like 'Abort%'; +------------------+-------+ | Variable_name    | Value | +------------------+-------+ | Aborted_clients  | 0     | | Aborted_connects | 1     | +------------------+-------+ (2).传输包错误 协议规定的信息,不能正常解析。原因可能是驱动版本,或者是ssl的设置。 报错信息: [Note] Got an error reading communication packets    报错信息中没有客户端以及db、用户信息 系统的状态记录反应: Aborted_connects 会增加 mysql> show status like 'Abort%'; +------------------+-------+ | Variable_name    | Value | +------------------+-------+ | Aborted_clients  | 0     | | Aborted_connects | 3     | +------------------+-------+ 3. 连接建立以后的运行中,client端不能给出正常反馈的异常。 (Aborted_clients) Aborted_clients 会增加 (1). 程序侧退出时未正常关闭,没有调用mysql_close() 报错信息: [Note] Aborted connection 684 to db: 'db_xxx' user: 'user_xxx' host: 'xx.xx.xx.xx' (Got an error reading communication packets) 系统的状态记录反应: Aborted_clients 会增加 mysql> show status like 'Abort%'; +------------------+-------+ | Variable_name    | Value | +------------------+-------+ | Aborted_clients  | 2     | | Aborted_connects | 3     | +------------------+-------+ (2). server端对超时的处理,客户端长时间没有任何操作 [Note] Aborted connection 684 to db: 'db_xxx' user: 'user_xxx' host: 'xx.xx.xx.xx' (Got an error reading communication packets) 系统的状态记录反应: Aborted_clients 会增加 mysql> show status like 'Abort%'; +------------------+-------+ | Variable_name    | Value | +------------------+-------+ | Aborted_clients  | 4     | | Aborted_connects | 3     | +------------------+-------+

相关推荐