《MysqL教程ERROR: Error in Log_event::read_log_event()》要点:
本文介绍了MysqL教程ERROR: Error in Log_event::read_log_event(),希望对您有用。如果有疑问,可以联系我们。
[root@xxxdb0402 tmp]# MysqLbinlog MysqL-bin.004271 > 4.log
ERROR: Error in Log_event::read_log_event(): 'read error',data_len: 438,event_type: 2
[root@xxxdb0402 tmp]# grep 'rding' 4.log > rd4.log
[root@xxxdb0402 tmp]# ll rd4.log
-rw-r--r-- 1 root root 0 Sep 3 17:50 rd4.log
空的,第四个日志没有录入操作
奇怪报错了,google之,3种方案
1 写全路径
[root@xxxdb0402 tmp]# /opt/MysqL/product/5.5.25a/bin/MysqLbinlog MysqL-bin.004271 > 4.log
ERROR: Error in Log_event::read_log_event(): 'read error',event_type: 2
[root@xxxdb0402 tmp]# whereis MysqLbinlog
MysqLbinlog: /usr/bin/MysqLbinlog
[root@xxxdb0402 tmp]# /usr/bin/MysqLbinlog MysqL-bin.004271 > 4.log
/usr/bin/MysqLbinlog: Character set '#45' is not a compiled character set and is not specified in the '/usr/share/MysqL/charsets/Index.xml' file
ERROR: Error in Log_event::read_log_event(): 'read error',event_type: 2
2 加-f强制解析
[root@xxxdb0402 tmp]# MysqLbinlog -f MysqL-bin.004271 > 4.log
ERROR: Error in Log_event::read_log_event(): 'read error',event_type: 2
3 这个copy过来的日志的时候,db正往日志里面写数据呢,从新copy下binlog到/tmp下.
那就重新copy一次binlog,再解析
[root@xxxdb0402 tmp]# cp /MysqLdata/data/MysqL-bin.004271 /tmp/
cp: overwrite `/tmp/MysqL-bin.004271'? y
[root@xxxdb0402 tmp]# /opt/MysqL/product/5.5.25a/bin/MysqLbinlog MysqL-bin.004271 > 4.log
ERROR: Error in Log_event::read_log_event(): 'read error',event_type: 2
MysqL教程3种方案都报一样的错误.MysqL版本5.5.25a.linux环境centos6.0
MysqL教程这个问题如何搞定,比较诡异?
MysqL教程朋友建议直接在MysqL的数据目录之下用MysqLbinlog试下
MysqL教程[root@xxxdb0402 data]# /opt/MysqL/product/5.5.25a/bin/MysqLbinlog -f MysqL-bin.004271 > 4.log
ERROR: Error in Log_event::read_log_event(): 'read error',event_type: 2
MysqL教程结果还是一样的报错.