Last_Error: Error executing row event: 'Cannot execute statement: impossible to write to binary log

一:问题描述

在从库上show slave status\G时,发现错误:

 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.'


二:出错原因

主从的BINLOG_FORMAT不一致,主为ROW,从为STATEMENT


三:解决办法

修改从的BINLOG_FORMAT为ROW。

stop slave;

set global binlog_format = 'ROW';

set binlog_format = 'ROW';

start slave;



你可能感兴趣的:(Last_Error: Error executing row event: 'Cannot execute statement: impossible to write to binary log)