服務器環境
架構圖
架構搭成后,在B機器上發現主從報錯Last_IO_Errno: 1595
Last_IO_Error: Relay log write failure: could not queue event from master
最終發現是B和C開啟了半同步復制,而A機器是5.5版本,沒有半同步參數設置,從而造成主從復制1595錯誤
解決辦法:關閉B和C半同步復制,使用異步復制。
另一現象:
A和B想做成主主復制, 即版本低的MySQL5.5做為MySQL5.7的從庫
主從報錯:
Got fatal error 1236 from master when reading data from binary log: 'Slave can not handle replication events with the checksum that master is configured to log; the first event 'mysql-bin.000106' at 165107652,the last event read from '/opt/mysql/binlogs/mysql-bin.000106' at 123, the last byte read from '/opt/mysql/binlogs/mysql-bin.000106' at 123.'
歡迎轉載,轉載請注明出處