数据库恢复mysqlbinlog报错ERROR: Error in Log_event::read_log_event(): 'read error', data_len: 825440000, event_type: 32

[root@huifu]# /usr/local/mysql/bin/mysqlbinlog mysql-bin.000002 -vv --start-position=792069178 --stop-position=822986204 >e.log
ERROR: Error in Log_event::read_log_event(): ‘read error‘, data_len: 825440000, event_type: 32

[root@mysql-db-95 huifu]# /usr/local/mysql/bin/mysqlbinlog mysql-bin.000002 --start-position=792069178 --stop-position=822986204 |/usr/local/mysql/bin/mysql -udball -p -f -S /tmp/mysqld.9003_huifuexp.sock 
Enter password: ERROR: Error in Log_event::read_log_event(): ‘read error‘, data_len: 825440000, event_type: 32

由于xtrabackup备份的从库,恢复了备份,想使用binlog,binlog使用的主库的,主库的binlog没有pos点--start-position=792069178 ,所以报错,加-f参数也不能执行。


原因:--start-position=792069178 binlog点位不存在导致。

解决:拷贝正确的binlog,拷贝从库的binlog后,--start-position=792069178 --stop-position=822986204, --start-postion=792069178 --stop-postion=811694309  开始和结束的点位要重新确定。

数据库恢复mysqlbinlog报错ERROR: Error in Log_event::read_log_event(): 'read error', data_len: 825440000, event_type: 32

上一篇:3DSmax打造精致的室内欧式雕花柜子家具建模


下一篇:CAD中怎么用用多段线画出曲线?