A strange MySQL replication fault

Source: Internet
Author: User

A strange MySQL replication fault
A MySQL disaster recovery database is deployed in a remote data center. After the deployment, the replication process looks normal. However, after observing the MySQL error log, the replication thread will be disconnected and reconnected every 30 seconds.
Error Log output by MySQL:
170110 16:07:00 [ERROR] Error reading packet from server: Lost connection to MySQL server during query (server_errno = 2013) 170110 16:07:00 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000362 'at position 948341170110 16:07:45 [ERROR] Error reading packet from server: Lost connection to mysql server during query (server_errno = 2013) 170110 16:07:45 [Note] S Lave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000362 'at position 950196 this fault can only be found when troubleshooting error logs, the monitoring replication thread cannot easily detect this problem.
After troubleshooting, it is found that there is a problem with the route from the machine to the main data center. After the route is added, the fault disappears.

Related Article

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.