Mysql Master/Slave problem handling records

Source: Internet
Author: User

Mysql master-Slave problem handling records Slave server downtime, resulting in the slave server startup after the show Slave status \ G prompt error Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event' solution: Master: show master status \ G # record the following information of the Master File: mysql-MasterSlave.000006 Position: 174367 Slave: slave stop; reset slave; change master to master_host = '2017. 168.1.126 ', master_user = 'user', master_password = 'PW ', master_log_file = 'mysql-MasterSlave.000006', master_log_pos = 174367; Note: Starting from mysql 5.5, Mysql joins semi-synchronous replication, and the usage of load data from master is canceled, after the MySQL Slave/Master instance recovers from an exception, MySQL Slave can process unfinished or discarded Master write data, such as log failure data, to obtain the source data from the master again. Similarly, restarting the Master instance does not cause Slave to lose data.

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.