[MySQL復制異常]'Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'


MySQL復制錯誤]Last_Errno: 1666 Last_Error: Error executing row event: 'Cannot execute statement: imposs

收到email報警, Last_Error: Error executing row event: 'Cannot execute statement: impossible to write to binary log since statement is in row format and BINLOG_FORMAT = STATEMENT.'

mysql> show slave status;

 

看到貌似是statement模式不足以應付應用,換成mixed試試看吧:

mysql> STOP SLAVE;
Query OK, 0 rows affected (0.02 sec)

 mysql>  SET GLOBAL binlog_format=MIXED;
Query OK, 0 rows affected (0.00 sec)

 mysql> START SLAVE;
Query OK, 0 rows affected (0.00 sec)

 

但是這樣只會一次性

為了永久生效,需要修改my.ini

# Remove leading

# to turn on a very important data integrity option: logging

# changes to the binary log between backups.

log_bin = E:/mysql56/log_bin/log_bin.log

#relay_log = E:/mysql56/log_bin/relay_log.log

#read_only = 1

# binary logging format - mixed recommended

binlog_format=mixed

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM