Mariadb: error Relay log read failure: Could not parse relay log event entry

188 篇文章 12 订阅 ¥49.90 ¥99.00

Slave SQL: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master’s binary log is corrupted (you can check this by running ‘mysqlbinlog’ on the binary log), the slave’s relay log is corrupted (you can check this by running ‘mysqlbinlog’ on the relay log), a network problem, or a bug in the master’s or slave’s MySQL code. If you want to check the master’s binary log or slave’s relay log, you will be able to know their names by issuing ‘SHOW SLAVE STATUS’ on this slave. Internal MariaDB error code: 1594

这里是说读取Relay日志时失败,解析不了Relay日志里的时间记录。可能的原因是:

  1. 主数据库的二进制文件毁坏了(可以通过mysqlbinlog命令检查bin日志);
  2. 从数据库的Relay日志文件损坏(也可以使用mysqlbinlog命令检查这个日志);
  3. 网络问题;
  4. 主从数据库的MYSQL代码问题。
    可以通过SHOW SLAVE STATUS命令查看日志文件名称。
    内部MariaDB错误码是1594:
    #define ER_SLAVE_RELAY_LOG_READ_FAILURE 1594

static int exec_relay_log_event(THD* thd, Relay_log_info* rli,
rpl_group_info *serial_rgi)
{
这个函数会尝试解Relay日志,如果最后没有解出来,就会有问题。

当然为什么会出现这种文件损坏的情况,主要还是在于操作系统里,对文件缓存的处理,当系统稳定运行,突然的宕机,可能导致内存数据不能及时同步到磁盘,导致后续文件处理出现错误。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

mzhan017

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值