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

Sunny先生 发布于 2016/11/18 10:46
阅读 160
收藏 0
因主库硬盘空间有限,将其中一个从库作为新的主库使用,变更另一个从库设置从新的主库同步数据。
但发现报错。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: 
  Replicate_Wild_Ignore_Table: 
                   Last_Errno: 0
                   Last_Error: 
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 178
              Relay_Log_Space: 396
              Until_Condition: None
               Until_Log_File: 
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File: 
           Master_SSL_CA_Path: 
              Master_SSL_Cert: 
            Master_SSL_Cipher: 
               Master_SSL_Key: 
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                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参数,重新设定主库信息和节点均无果
哪位遇到过同样问题,求指点解决办法。
加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部