mysql 主从的 1236 错误“error reading log entry”

2016-11-18 10:43:36 +08:00
 lotina69

因主库硬盘空间有限,将其中一个从库作为新的主库使用,变更另一个从库设置从新的主库同步数据。 但发现报错。 show slave status 结果如下:

              Master_Host: xx.xx.xx.xx
              Master_User: slave
              Master_Port: 3302
            Connect_Retry: 10
          Master_Log_File: binlog.000008
      Read_Master_Log_Pos: 178
           Relay_Log_File: relaylog.000006
            Relay_Log_Pos: 248
    Relay_Master_Log_File: binlog.000008
         Slave_IO_Running: No
        Slave_SQL_Running: Yes
          Replicate_Do_DB: 
      Replicate_Ignore_DB: mysql,test,information_schema
       Replicate_Do_Table: 
   Replicate_Ignore_Table: 
  Replicate_Wild_Do_Table: 

       Master_SSL_CA_File: 
       Master_SSL_CA_Path: 
          Master_SSL_Cert: 
        Master_SSL_Cipher: 
           Master_SSL_Key: 
    Seconds_Behind_Master: NULL

            Last_IO_Errno: 1236
            Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'error reading log entry'
           Last_SQL_Errno: 0
           Last_SQL_Error: 

1 row in set (0.00 sec)

查看 mysql 错误日志有如下提示:

161118 10:36:38 [ERROR] Error reading packet from server: error reading log entry ( server_errno=1236) 161118 10:36:38 [ERROR] Slave I/O: Got fatal error 1236 from master when reading data from binary log: 'error reading log entry', Error_code: 1236

尝试过各种办法, stop slave;start slave;重启,更改 max_allowed_packet 参数,重新设定主库信息和节点均无果 哪位遇到过同样问题,求指点解决办法。

1296 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/321403

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX