Mysqldump cause Sql_thread to stop.

Source: Internet
Author: User

During the backup from the library, you receive the slave Sql_thread stop alarm and check the status as follows:

(1) Show slave status output

relay_master_log_file:mysql-bin.009188

Slave_io_running:yes
Slave_sql_running:no

(2) Error log output

2017-12-13 10:35:14 61080 [Note] Error reading relay log event:slave SQL thread was killed
2017-12-13 10:44:02 61080 [Note] Slave SQL thread initialized, starting replication in log ' mysql-bin.009188 ' at position 85266734, relay log './relay-bin.017692 ' position:85266897

Check backup script for mysqldump manual

Script contains--dump-slave=2 (backup with commented change master)

There is a sentence in the parameter explanation

This option causes Mysqldump to stop the slave SQL thread before the dump and restart it again after.

Conclusion: Stop slave before backup, end of backup and start slave;

Mysqldump cause Sql_thread to stop.

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.