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

标签 java mysql wso2 wso2-api-manager

我正在将 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 上进行复制而发生上述错误。

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

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/

相关文章:

java - 如何获取 Firebase 数据库中子条目的总和

mysql - 使用 count(*) 创建动态数据透视表查询 mysql

PHP - 将 MySQL 表导出到 JSON 文件

wso2 - 无法将 WSO2 JAX-RS 服务添加/导入到 StratosLive 应用程序服务器

java - WSO2 身份服务器 - Carbon 无法执行 Java

java - 动态生成的zip下载结果损坏的文件

java - 帮助使用二维数组的 Java Sudoku Permuter 程序?

java - JPA 删除的实体在 JoinColumn 上重新创建实体

MySQL:无法删除/删除外键

debugging - 用于调试目的的 WSO2 工作流执行跟踪