Documentation for JIRA 4.2. Documentation for other versions of JIRA is available too.
If you use JIRA with MySQL and attempt to create a JIRA issue, JIRA may generate an error similar to the following:
Error creating issue: Could not create workflow instance: root cause: while inserting: [GenericEntity:OSWorkflowEntry][id,null][name,jira][state,0] (SQL Exception while executing the following:INSERT INTO OS_WFENTRY (ID, NAME, INITIALIZED, STATE) VALUES (?, ?, ?, ?) (Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'))
または
Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
You may encounter this problem if your JIRA MySQL database configuration:
JIRA uses the 'READ-COMMITED' transaction isolation level with MySQL, which currently only supports row-based binary logging. For more information about this, please refer to MySQL issue no. 40360.
To overcome this problem, you must configure MySQL's binary logging format to use 'row-based' binary logging.
To configure MySQL's binary logging format to used 'row-based' binary logging:
my.cnf
) in a text editor./etc
directory.binlog_format
property in this file in the [mysqld]
section and ensure that its value is row
, such that you end up with:
binlog_format=row