从库日志中的错误: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’
解决办法:
1. 首先停止从库同步;
slave stop;
2. 主库中清空日志:
flush logs;
3. 查看主库状态,主要查看日志文件和位置:
show master status;
4. 回到从库中,执行命令,使日志文件和位置对应主库:
CHANGE MASTER TO MASTER_LOG_FILE=’log-bin.000005′,MASTER_LOG_POS=107;
5. 最后,启动从库:
slave start;
成功解决!
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’”