我正在将 WSO2 API Manager 1.8 与 MySQL 结合使用。我无缘无故地收到以下错误。
ERROR - JDBCResourceDAO Failed to delete the resource with id 758. 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.
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 UN
COMMITTED.
我该如何解决这个问题?
最佳答案
由于使用 WSO2 产品在 Mysql DB 上进行复制而发生上述错误。
There are several solutions for the issue:
You need to change the binlog mode to either ROW or MIXED in order to run the load of the data into the database
mysql> SET GLOBAL binlog_format = 'ROW';
If you are not planning to use your MySQL server for the replication consider turning the binary logging off by removing the option
--log-bin
from the command options for the mysqld utility starting the MySQL server.
关于java - JDBCResourceDAO 无法删除 id 的资源 - WSO2 API Manager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29141222/