2015-03-19 84 views
0

我正在使用带有MySQL的WSO2 API Manager 1.8。我无缘无故地收到了错误。JDBCResourceDAO无法删除具有ID的资源 - WSO2 API管理器

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. 

我该如何解决这个问题?

回答

0

由于在WSO2产品上使用Mysql DB进行复制,因此发生上述错误。

根据ERROR 1598 (HY000): Binary Logging not Possible. Message: Transaction Level READ-COMMITTED in InnoDB is not Safe for Binlog Mode STATEMENT

有该问题的几个解决方案:

  • 您需要更改二进制日志模式设置为ROWMIXED才能运行将数据加载到数据库中

    mysql> SET GLOBAL binlog_format = 'ROW'; 
    
  • 如果您不打算使用您的MySQL服务器进行复制,请考虑通过从启动MySQL服务器的mysqld实用程序 的命令选项中删除 选项来关闭二进制注销。