mysqlAB複製報[Warning] Statement may not be safe to log in statement format

 作好mysql AB複製後,master總報:mysql

[Warning] Statement may not be safe to log in statement format.……sql

每更新一條數據就出現一次,致使日誌太多,並且淹沒了重要的日誌。意思應該是statement 格式不安全安全

    statement format 應該是 binlog的一種格式,進入mysql查看一下ide

  show global variables like 'binlog_format';spa

  果真當前的格式爲statement日誌

  須要把格式改成 mixed格式orm

  修改master的 my.cfgget

  在[mysqld]下面加入下面這行it

  binlog_format=mixedio

  而後重啓mysql服務,發現錯誤日誌裏的 警告 都中止了。這回清靜多了~~

相關文章
相關標籤/搜索