mysql同步中的问题

netxuning 2013-01-08 12:52:03
一台master带三台slave
今天三台slaves上执行show slave status命令式,同时出现错误:
Last_SQL_Errno: 1594
Last_SQL_Error: 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.


以前遇上的情况是Read_Master_Log_Pos不再增长,只需要从这个同步点重新恢复一下即可。
但现在的问题是Read_Master_Log_Pos还一直在增长,Relay_Log_Pos倒是不再增长了。这种情况下,我该如何查找同步点呢?Relay_Log中的同步点的计数跟Master_Log都不一致呀。。。
...全文
140 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
珠海-天堂 2013-01-08
  • 打赏
  • 举报
回复
The possible reasons are: the master's binary log is corrupted 是不是master宕机过? 如果是,你只需要change master to 宕机后生成的那个BINLOG的最开始的POS位置就行了。
rucypli 2013-01-08
  • 打赏
  • 举报
回复
如果执行stop slave sql_thread ; 那么是会产生Read_Master_Log_Pos还一直在增长,Relay_Log_Pos不增长的 因为io线程复制过来的binlog有错误的地方,所以推荐重新mysqldump备份 重做salve,这样就可以跳过binlog出错的地方
netxuning 2013-01-08
  • 打赏
  • 举报
回复
奇怪的是,为什么几台从服务器上的relay log 会同时停止同步,而且都是同一个同步点出现问题。看来不甚理解relay binlog 和master binlog的关系

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧