Could not find first log file name in binary log

Scenario Master – Master replicationrest

MasterA is a client facing server
MasterB is a warm standby server (read only)server

MasterB restarted abruptly and when instances were braught back up MasterA (it’s slave) was showing the following error:ci

MasterA has the following error in show slave status:
Last_IO_Errno: 1236
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’it

Solution:io

Slave: stop slave;ast

Master: flush logs
Master: show master status; — take note of the master log file and master log positioncli

Slave: CHANGE MASTER TO MASTER_LOG_FILE=’log-bin.00000X′, MASTER_LOG_POS=106;
Slave: start slave;file

相關文章
相關標籤/搜索