使用之前的步骤尝试恢复 主库查看 mysql> show master status; +------------------+----------+--------------+------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +------------------+----------+--------------+------------------+ | mysql-bin.000151 | 69750947 | | mysql | +------------------+----------+--------------+------------------+ 1 row in set (0.00 sec) 从库操作 mysql> slave stop; mysql> change master to master_host='10.10.10.11', master_user='user', master_password='passwd', master_log_file='mysql-bin.000151', master_log_pos=69750947; mysql> slave start; mysql> SHOW SLAVE STATUS\G
并没有向之前一样直接恢复,报一下错 Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master'