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 …