免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4025 | 回复: 2
打印 上一主题 下一主题

mysql 同步出错,slave 报Error in Log_event:'Event too big' event_type: 120 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-11 15:13 |只看该作者 |倒序浏览
本帖最后由 nttctq 于 2011-03-11 15:47 编辑

mysql master - slave 同步出错,slave 报如下错:

110310 21:08:22 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
110310 21:08:22 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'db77.000143' position 366306998
110310 21:08:22 [ERROR] Error in Log_event::read_log_event(): 'Event too big', data_len: 808474952, event_type: 120
110310 21:08:22 [ERROR] Error reading relay log event: slave SQL thread aborted because of I/O error

110310 21:08:22 [ERROR] Slave: 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. Error_code: 0

110310 21:08:22 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'db77.000143' position 297   

110310 21:08:22 [Note] Slave: connected to master '---------'标注了,replication resumed in log 'db77.000143' at position 366306998

检查后发现是relay log is corrupted,请教在下面四句的提示下,
问题a:我change master to MASTER_LOG_FILE='db77.000143' , MASTER_LOG_POS=???
问题b:还有,'Event too big', data_len: 808474952 这个也太大了吧。是max_allowed_packet的影响吗?盼回

1、Failed reading log event,reconnecting to retry, log 'db77.000143' position 366306998
2、We stopped at log 'db77.000143' position 297   
3、replication resumed in log 'db77.000143' at position 366306998
4、show slave status \G;提示的二句
    Relay_Log_Pos: 366307104               
    Relay_Master_Log_File: db77.000143
    Exec_Master_Log_Pos: 297
    Relay_Log_Space: 675674054

论坛徽章:
0
2 [报告]
发表于 2011-03-13 00:35 |只看该作者
The possible reasons are: the master's binary log is corrupted

可能的错误是主服务器上的日志文件被损坏了。
也可能是从服务器上的日志文件损坏了。

你用mysqlbinlog打开db77.000143这个日志文件看看。

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2011-03-13 22:24 |只看该作者
max_allowed_packe一般设置为16MB的比较多

应该是master的binlog问题
去相应的file和pos看看
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP