免费注册 查看新帖 |

Chinaunix

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

主从复制重启后不同步。。 [复制链接]

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

主服务器日志
100330 05:00:14  mysqld ended

100330 05:03:36  mysqld started
100330 05:03:36  mysqld started
^G/opt/lampp/sbin/mysqld: Error on delete of

'/opt/lampp/var/mysql/localhost.lower-test' (Errcode: 2)
100330  5:03:37 [ERROR] Can't start server: Bind on TCP/IP port:

Address already in use
100330  5:03:37 [ERROR] Do you already have another mysqld server

running on port: 3306 ?
100330  5:03:37 [ERROR] Aborting



从服务器日志
100330  5:00:11 [Note] /opt/lampp/sbin/mysqld: Normal shutdown

100330  5:00:11 [Note] Slave I/O thread killed while reading event
100330  5:00:11 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000004', position 941562
100330  5:00:11 [Note] Error reading relay log event: slave SQL thread

was killed
100330  5:00:11 [Note] Slave I/O thread killed while reading event
100330  5:00:11 [Note] Slave I/O thread exiting, read up to log 'mysql

-bin.000004', position 941562
100330  5:00:11 [Note] Error reading relay log event: slave SQL thread

was killed
100330  5:00:11 [Note] /opt/lampp/sbin/mysqld: Shutdown complete

100330  5:02:35 [Warning] Neither --relay-log nor --relay-log-index

were used; so replication may break when this MySQL server acts as a

slave and has his hostname changed!! Please use '--relay-

log=/opt/lampp/var/mysql/localhost-relay-bin' to avoid this problem.
100330  5:02:35 [Note] /opt/lampp/sbin/mysqld: ready for connections.
Version: '5.0.45'  socket: '/opt/lampp/var/mysql/mysql.sock'  port:

3306  Source distribution
100330  5:02:35 [Note] Slave SQL thread initialized, starting

replication in log 'mysql-bin.000004' at position 941562, relay log

'/opt/lampp/var/mysql/localhost-relay-bin.000002' position: 930622
100330  5:02:38 [ERROR] Slave I/O thread: error connecting to master

'slave@192.168.19.101:3306': Error: 'Lost connection to MySQL server at

'reading initial communication packet', system error: 113'  errno: 2013

retry-time: 60  retries: 86400
100330  5:03:38 [Note] Slave I/O thread: connected to master

'slave@192.168.19.101:3306',  replication started in log 'mysql-

bin.000004' at position 941562
100330  5:05:36 [ERROR] Error reading packet from server: binlog

truncated in the middle of event ( server_errno=1236)

现在io和sql都没有同步。。。binlog是相同的。pos节点主从不同。。查看从服务器状态,显示未同步
重启主从mysql后,又同步了

论坛徽章:
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
2 [报告]
发表于 2010-03-31 08:31 |只看该作者
日志中有很多异常

感觉给的不是完整连续的日志
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP