slave服务器,查看状态时,发现下面的错误:
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' at 5115510, the last event read from './mysql-bin.000001' at 5115510, the last byte read from './mysql-bin.000001' at 120.'
搜了一下,原来是mysql版本的问题,原来都是5.5的,后来主库机器的硬盘坏了,重新装了一个5.6版本的mysql。据说5.6的binlog_checksum 默认设置的是 crc32
更改master的binlog_checksum 为none即可,