動かざることバグの如し

近づきたいよ 君の理想に

【MySQL】Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTと出る

MySQLアップデートするとOwncloudが動かない。

おかしいと思って見ると以下の様なエラーが出てた。

An exception occurred while executing 'INSERT INTO `oc_users` ( `uid`, `password` ) VALUES( ?, ? )' with params ["user", "*************************"]: SQLSTATE[HY000]: General error: 1665 Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.

General error: 1665

原因はわからないけど、/etc/mysql/my.cnfmysqld欄に以下を追記

binlog-format = MIXED

で再起動したら直った