免费注册 查看新帖 |

Chinaunix

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

主从数据库同步错误,谢谢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-01 09:34 |只看该作者 |倒序浏览
mysql数据库版本4.1.7 ,做了个主从同步,现在总在从库的错误日志里发现这种错误,错误如下:
080630 15:50:26 [ERROR] Slave: Query partially completed on the master (error on master: 1053) and was aborted. There is a chance that your master is inconsistent at this point. If you are sure that your master is ok, run this query manually on the slave and then restart the slave with SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE; . Query: 'update tables set Myname='lwjwgn' where NameBak='zhongguo' and  Pass='yjbgso'', Error_code: 1053

想请教大家这种错误是什么原因造成的!谢谢各位了!

论坛徽章:
0
2 [报告]
发表于 2008-07-01 10:02 |只看该作者
MASTER 是不是掉过一次?

论坛徽章:
0
3 [报告]
发表于 2008-07-01 10:59 |只看该作者

回复 #2 yueliangdao0608 的帖子

对,出现这个错误的时候都会有一次尝试与主数据库连接
080630 15:49:26 [ERROR] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'updatelog.000265' position 58338706
080630 15:49:26 [ERROR] Slave I/O thread: error reconnecting to master 'replicate@202.10.67.9:3306': Error: 'Lost connection to MySQL server during query'  errno: 2013  retry-time: 60  retries: 86400
有没有相关配置杜绝这样的错误发生

[ 本帖最后由 关系户 于 2008-7-1 11:09 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-07-01 12:33 |只看该作者
建议还是开启sync-binlog=1吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP