MySQL Replication 遇到 error 1236错误的修复方法

MySQL Replication 遇到 error 1236错误的修复方法

MySQL Replication 遇到 error 1236 就有点麻烦了~ 通常都是 binlog 出问题造成的~ (Master 或 Slave 的 binlog 坏掉都有可能造成此错误)

通常遇到这个状况, 都是 Slave 的 binlog 坏掉, 就 Slave DB 的资料重倒来解决, 但是此次遇到是 Master 的 binlog 坏掉, 就有点苦了~

错误讯息如下:

Last_IO_Errno: 1236

Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 1Client requested master to start replication from impossible position2 the first event 1mysql-bin.0035831 at 45997491, the last event read from 1./mysql-bin.0035831 at 4, the last byte read from 1./mysql-bin.0035831 at 4.1

MySQL Replication 遇到 Got fatal error 1236 from master 修