Mysql 5.6 (Master)到5.1主从同步错误[1]

Mysql 版本:

mysql-5.6.15-win32
mysql-5.1.56-win32

配置好mysql的主从之后,执行

show slave status \G;

命令时发现

Slave_IO_Running: No.

错误信息为

Last_IO_Error: 
 Got fatal error 1236 from master when reading data from binary log:
 'Slave can not handle replication events with the checksum that master is configured to log;
 the first event 'mysql-bin.000001' a'

Error log

Error reading packet from server: 
Slave can not handle replication events with the checksum that master is configured to log
原因为5.6向5.1同步时,5.6使用了crc32做binlog的checksum,我们把master的binlog-checksum设置为none
binlog-checksum = none
然后
net stop master
net start master
stop slave
change master...// 重新设置binlog的读取位置
start slave
show slave status\G;
发现
Slave_IO_Running: Yes
Slave_SQL_Running: Yes

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值