开发者社区 问答 正文

读MySQL Binlog日志报错:java.io.IOException: Received er

已解决

读MySQL Binlog日志报错:java.io.IOException: Received error packet: errno = 1236, sqlstate = HY000 errmsg = The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.

展开
收起
阿里云服务支持 2022-12-08 16:06:09 355 分享 版权
1 条回答
写回答
取消 提交回答
  • 官方回答

    主库有意外重启过,意外发生前主库在一个binlog下面日志写入,因为意外中断,待重新起来的时候会打开一个新的binlog从0开始写。但是这件事情Slave并不知道,它还在一直同步前一个binlog,直到pos位置id大于binlog文件位置上限触发告警。

    2022-12-08 16:14:39
    赞同 展开评论