In the master node, it reported
Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses a LIMIT clause.
I reset this variables binlog_format=mixed to reslove this problem.
But in the slave node, the slave thread couldn’t be started, it reported
[ERROR] Slave SQL: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log, Error_code: 1590
[ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with “SLAVE START”. We stopped at log ‘mysql-bin.000036’ position 371197684
I try to restart the slave thread in the slave node, but it doesn’t work.
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Last_Error: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log
Last_SQL_Error: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log
Last_SQL_Error_Timestamp: 140319 15:38:02
1 row in set (0.00 sec)
How can I repair my slave? Thanks a lot.