Got An error reading communication packets

Source: Internet
Author: User

The Mysql error log suddenly found a large number of Got an error reading communication packets

grep "Got An error reading communication packets" Error_log_3356.err |wc-l

360

Compare baseline parameter files and find log_warnings changes

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)


The official document explains the log_warnings

Print out warnings such as aborted connection ... to the error log. This option is enabled (1) by default. To disable it, use--log-warnings=0. Specifying the option without a level value increments the current value by 1. Enabling this option by setting it greater than 0 are recommended, for example, if your use replication Ation about what is happening, such as messages about network failures and reconnections). If the value is greater than 1, aborted connections are written to the error log, and access-denied errors for new connect Ion attempts are written

Http://dev.mysql.com/doc/refman/5.6/en/server-options.html#option_mysqld_log-warnings



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.