MySQL master/slave library does not sync 1236 error: Could not find the "I"-log file name in binary ...

Source: Internet
Author: User


Recently, encountered the MySQL master and slave library synchronization problem, mainly because the computer broke a bit of electricity, toss AH.
Error from library log: Last_io_error:got fatal error 1236 from master, reading data from binary log: ' could ' Name in binary log index file '

Solution:

1. First stop synchronization from the library;

Slave stop;

2. Empty the log in the main library:

Flush logs;


3. View the main library status, mainly view the log file and location:

Show master status;

4. Back from the library, execute the command to make the log file and location corresponding to the main library:

Change MASTER to master_log_file= ' log-bin.000005 ', master_log_pos=107;

5. Finally, start from the library:

Slave start;

A successful solution!
Last_io_error:got fatal Error 1236 from master when reading data from binary log: ' could ' Binary Log index file ' "

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.