Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find

 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'

 

 

当碰上这种错误的时候, 一般都是直接从库重新init一次, 因为 binlog  file断档了。今天prod上碰到一次,只好叫同事去rebuild了一次。

 

大家记得在设置expire_logs_days参数或者手动flush logs的时候,一定要注意slave的replication的log点。否则及其容易报1236错误。


清理日志方法请参考:

清理种类: http://blog.csdn.net/mchdba/article/details/8841079

批量清理几十台DB的binlog:http://blog.csdn.net/mchdba/article/details/11936043

远程清理prod上面的过期实效的备份:http://blog.csdn.net/mchdba/article/details/8982955

批量清理100多台DB的binlog:http://blog.csdn.net/mchdba/article/details/9032305

 

 

 

 

你可能感兴趣的:(Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find)