JDBCResourceDAO无法删除具有id - WSO2 API Manager的资源

时间:2015-03-19 09:42:41

标签: java mysql wso2 wso2carbon wso2-am

我正在使用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.

我该如何解决这个问题?

1 个答案:

答案 0 :(得分: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

  

该问题有几种解决方案:

     
      
  • 您需要将binlog模式更改为 ROW MIXED ,以便将数据加载到数据库中

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

  •