2015-03-19 82 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實用程序 的命令選項中刪除 選項來關閉二進制註銷。