Java 默认事务级别read committed对binlog_format的需求

tomcat报错

 

 

java.sql.SQLException: 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.

 

 

 

问题解决方式:

mysql> SET SESSION binlog_format = 'ROW';

mysql> SET GLOBAL binlog_format = 'ROW';

posted @ 2017-07-20 15:16  Yrian  阅读(280)  评论(0)    收藏  举报