BINLOG_FORMATで怒られる場合
sql
mysql> show slave status \G
で
sql
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.'
とでたら、
sql
mysql> SHOW GLOBAL VARIABLES LIKE 'binlog_format';
でbinlog_formatを確認。
マスターとスレーブで異なっているいる場合に起こるようです。
コマンドでmysqlを再起動せずに変更するなら、※扱い注意!
sql
mysql> slave stop;
mysql> SET GLOBAL binlog_format = 'MIXED';
mysql> slave start;
mysql> show slave status ¥G;
※忘れずにmy.cnfにも記述してmysql再起動後も反映されるように。
my.cnf
binlog_format = MIXED