binlog解析补录数据
解析成正常SQL排查问题使用:
mysqlbinlog --start-position=100 --stop-position=200 --no-defaults ./mysqlbin.006936 –base64-output=decode-rows -vv >6936.sql
补录数据:
切断前获取日志问题:
show master status;
同步后获取日志问题:
show master status;
mysqlbinlog --no-defaults ./mysqlbin.000343 --start-position=695263278 --stop-position=695264800 >6936.sql
source 6936.sql