MySQL 5.7複製報錯Client requested master to start replication from impossible

feelpurple發表於2017-12-12
錯誤日誌中的資訊
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部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2148601/,如需轉載,請註明出處,否則將追究法律責任。

相關文章