Mysql master/slave database non-synchronization solution _ MySQL
Source: Internet
Author: User
Mysql master/slave database non-synchronization problem solution bitsCN.com encounters such an error as: "Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file', or the master/slave database is not synchronized due to data clearing. the solution is as follows:
First, go to slave and execute: "slave stop;" to stop slave database synchronization;
Run "flush logs;" in the master to clear logs;
Then execute "show master status;" in the master to check the status of the master database, mainly the log file and position;
Return TO the slave and run: "change master to MASTER_LOG_FILE = 'Log-bin.000004 ', MASTER_LOG_POS = 106;". the file and location correspond TO those in the master;
Finally, run "slave start;" in slave to start synchronization. BitsCN.com
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.