Project

General

Profile

Actions

Patch #39592

closed

Set transaction isolation level of MySQL to READ-COMMITTED in database.yml.example

Added by Go MAEDA 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Due to bug fix #39437, you have to set your MySQL server's transaction_isolation level to READ-COMMITTED. Detailed information about this requirement can be found in the MySQL configuration documentation.

To ensure this critical configuration is not overlooked, I propose updating config/database.yml.example with explanatory comments. The attached patch includes these suggested comments and makes the necessary configuration more visible.


Files


Related issues

Is duplicate of Redmine - Patch #39737: Support MySQL 8ClosedMarius BĂLTEANU

Actions
Actions #1

Updated by Marius BĂLTEANU 5 months ago

  • Category set to Database

I'm not sure if we should add it as you proposed or comment it out. Any other opinions?

Actions #2

Updated by Marius BĂLTEANU 5 months ago

On way or another, I will include this change before releasing the new versions.

Actions #3

Updated by Go MAEDA 5 months ago

I think it is even better to update doc/INSTALL as well.

diff --git a/doc/INSTALL b/doc/INSTALL
index 1487b8317..2e34eb0c1 100644
--- a/doc/INSTALL
+++ b/doc/INSTALL
@@ -86,6 +86,26 @@ The current version of Firefox, Safari, Chrome, Chromium and Microsoft Edge.
    Go to "Administration" to load the default configuration data (roles,
    trackers, statuses, workflow) and to adjust the application settings

+== Database server configuration
+
+When using MySQL with Redmine 5.0.1 or later, it is necessary to change
+the transaction isolation level from the default REPEATABLE READ to
+READ_COMMITTED. To modify this setting, either change the database
+configuration file or alter the settings on your MySQL server.
+
+To set the transaction isolation level in the database configuration file,
+add transaction_isolation variable as below:
+
+  production:
+    adapter: mysql2
+    database: redmine
+    host: localhost
+    [...]
+    variables:
+      transaction_isolation: "READ-COMMITTED" 
+
+More details can be found in https://www.redmine.org/projects/redmine/wiki/MySQL_configuration.
+
 == SMTP server Configuration

 Copy config/configuration.yml.example to config/configuration.yml and
Actions #4

Updated by Marius BĂLTEANU 5 months ago

Actions #5

Updated by Marius BĂLTEANU 5 months ago

  • Status changed from New to Closed

Changes committed as part of #39737.

Actions #6

Updated by Marius BĂLTEANU 5 months ago

  • Target version deleted (5.1.1)
Actions

Also available in: Atom PDF