ITPub博客

首页 > 数据库 > MySQL > MySQL 5.7复制报错Client requested master to start replication from impossible

MySQL 5.7复制报错Client requested master to start replication from impossible

原创 MySQL 作者:feelpurple 时间:2017-12-12 15:55:56 0 删除 编辑
错误日志中的信息
2017-12-12T07:41:47.070228Z 57896 [ERROR] Error reading packet from server for channel 'master_4': Client requested master to start replication from impossible position; the first event 'mysql-bin.000003' at 31342251, the last event read from '/data/db_log/mysql-bin.000003' at 4, the last byte read from '/data/db_log/mysql-bin.000003' at 4. (server_errno=1236)

2017-12-12T07:41:47.077618Z 57896 [ERROR] Slave I/O for channel 'master_4': Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position; the first event 'mysql-bin.000003' at 31342251, the last event read from '/data/db_log/mysql-bin.000003' at 4, the last byte read from '/data/db_log/mysql-bin.000003' at 4.', Error_code: 1236

报错原因
执行 change master 语句时,里面的 master_log_file 写的不正确

解决方法
在 change master 语句里,写上正确的 master_log_file

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26506993/viewspace-2148601/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-01

  • 博文量
    404
  • 访问量
    1673927