配置mysql sync_binlog 和innodb_flush_log_at_tx_commit致使主從數據不一致

有兩種配置狀況可能致使主從數據不一致事務 sync_binlog=1 innodb_flush_log_at_tx_commit=0it 當commit時數據寫到binlog當時並無寫到redolog 時 系統crash。此時從庫已經拿到binglog進行數據重作,可是主庫重啓後會回滾該事務,此時致使主從數據不一致.innodb sync_binlog=1 innodb_flush_log_at_
相關文章
相關標籤/搜索