liunx mysql错误日志_mysql 错误日志:Got an error reading communication packets

博客内容讲述了在Linux环境中,MySQL错误日志中频繁出现'Got an error reading communication packets'的问题。作者通过grep命令统计了这类错误的数量,并检查了log_warnings参数,发现其值为2。通过设置log_warnings为0来关闭警告输出,并查阅官方文档了解到,启用log_warnings大于0对于使用复制等场景是有益的,因为它提供了关于网络故障和重连等信息。当log_warnings大于1时,会记录断开连接和新连接尝试的权限错误。
摘要由CSDN通过智能技术生成

Mysql 错误日志中突然发现大量的Got an error reading communication packets

grep "Got an error reading communication packets" error_log_3356.err |wc -l

360

比较基线的参数文件,发现log_warnings有变化

mysql> select @@log_warnings;

+----------------+

| @@log_warnings |

+----------------+

|              2 |

+----------------+

1 row in set (0.00 sec)

mysql> set global log_warnings=0;

Query OK, 0 rows affected (0.00 sec)

mysql> select @@log_warnings;

+----------------+

| @@log_warnings |

+----------------+

|              0 |

+----------------+

1 row in set (0.00 sec)

官方文档对log_warnings的解释

Print out warnings such as Aborted connection... to the error log. This option is enabled (1) by default. To

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值