MySQL多源主備同步報錯:Last_IO_Error: Got fatal error 1236 from master when reading data from binary log

Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.’

在這裏插入圖片描述在這裏插入圖片描述
在做mysql的gtid多源主備同步時start slave出現如上報錯

解決報錯:清除 master服務器 上的二進制日誌(清除前先備份)
在這裏插入圖片描述
從服務器重啓啓動slave
在這裏插入圖片描述

報錯:Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘could not find next log; the first event ‘’ at 4, the last event read from ‘/var/log/mariadb/mariadb-bin.000011’ at 726, the last byte read from ‘/var/log/mariadb/mariadb-bin.000011’ at 726.’

在這裏插入圖片描述

解決: stop slave 後重新設置change master to …

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章