在迁移失败后服务器释放空间把旧的binlog删除了,导致二次同步报错
检查结果:
失败
失败原因:
源库中,如下的binlog文件被删除了
Binlog fileName :mysql-bin.000020
Binlog fileName :mysql-bin.000021
Binlog fileName :mysql-bin.000022
Binlog fileName :mysql-bin.000023
解决方案:
BIN_LOG_EXIST_REPAIR@PURGE BINARY LOGS TO 'mysql-bin.000024'
解决方案就是执行sql:
FLUSH BINARY LOGS; PURGE BINARY LOGS TO 'mysql-bin.000024';