zoukankan      html  css  js  c++  java
  • 转 ERROR: Error in Log_event::read_log_event()

    感谢白及

    https://blog.csdn.net/u010098331/article/details/50931873

    使用mysqlbinlog恢复日志时返回如下报错

    [root@localhost log]# mysqlbinlog mysql-bin.000003 mysql-bin.000004 --start-position=1206 > t.sql
    ERROR: Error in Log_event::read_log_event(): 'Sanity check failed', data_len: 41, event_type: 30
    ERROR: Could not read entry at offset 1331: Error in log format or read error.

    在网上查找案例,因为mysqlbinlog版本和bin log不匹配。

    因为我是从mysql 5.5升级到5.6,系统环境变量里还是指向mysql 5.5的bin目录。设置为绝对路径后成功。

    [root@localhost mysql3306]# ./bin/mysqlbinlog /home/mysql3306/log/mysql-bin.000003 /home/mysql3306/log/mysql-bin.000004 --start-position=1206 > t.sql

    使用mysqlbinlog恢复日志时返回如下报错

    [root@localhost log]# mysqlbinlog mysql-bin.000003 mysql-bin.000004 --start-position=1206 > t.sql
    ERROR: Error in Log_event::read_log_event(): 'Sanity check failed', data_len: 41, event_type: 30
    ERROR: Could not read entry at offset 1331: Error in log format or read error.

    在网上查找案例,因为mysqlbinlog版本和bin log不匹配。

    因为我是从mysql 5.5升级到5.6,系统环境变量里还是指向mysql 5.5的bin目录。设置为绝对路径后成功。

    [root@localhost mysql3306]# ./bin/mysqlbinlog /home/mysql3306/log/mysql-bin.000003 /home/mysql3306/log/mysql-bin.000004 --start-position=1206 > t.sql

    炊烟起了;夕阳下了;细雨来了 多调试,交互式编程体验 记录,独立思考,对比 感谢转载作者 修车 国产化 read and connect 匍匐前进, 讲故事
  • 相关阅读:
    [转]ABAP动态取得数据
    [转]ABAP学习笔记之三内表
    [转]ABAP实现对变式的修改
    [转]ABAP Search help
    C#中访问私有成员[转载]
    如果在BackgroundWorker运行过程中关闭窗体…
    交叉编译的概念
    索引器的重载的一个例子
    自定义类实现IComparable接口
    ioctl函数
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/14360668.html
Copyright © 2011-2022 走看看