Error with database
Asked by NicoDeluxe:

Hi want to set up confluence new, but i get following install error during database setup

Your database must use 'READ-COMMITTED' as the default isolation level.

i added

\<property name="hibernate.dialect"\>com.atlassian.confluence.impl.hibernate.dialect.MySQLDialect\</property\>

to the confluence.cfg.xml and restared but the error stay.

Please help me


Answers:
author: Frantisek Bekes
body: I read all suggestions how to solve this when installing new software for first time, and the only solution was to go into phpmyadmin and execute command:

SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED;

comments: author: Nic Brough -Adaptavist-
body: Yes, that's what the docs tell you to do.


author: coiram
body: Not really Nic, no where in any documentation you can find what [Frantisek Bekes](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2050979) posted above . . . unless you find that in a "eyes only Atlassian" paper?

Frantisek solution has been the only one that has worked so far.

I would suggest Atlassian to review their "official" documentation.


author: Nic Brough -Adaptavist-
body: Oddly, I can find it in the installation docs, and the healthcheck docs and the troubleshooting docs. For example, [https://confluence.atlassian.com/doc/database-setup-for-sql-server-9258.html](https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html)


author: Nic Brough -Adaptavist-
body: You should not be changing the confluence.cfg.xml - the installer should be setting that up correctly already

This is a database setting - you need to configure your database server correctly. See <https://confluence.atlassian.com/confkb/confluence-fails-to-start-and-throws-mysql-session-isolation-level-repeatable-read-is-no-longer-supported-error-241568536.html> for details on how to correct the settings on the database side.

comments: author: NicoDeluxe
body: Hi thx, n the link is descriped to set the property into the configuration.cfg.xml

Set the session isolation level in Confluence. In the top level of your Confluence home directory, find the `confluence.cfg.xml` file and locate the `<properties>` section. Add the following parameter:


author: Nic Brough -Adaptavist-
body: Please read the document again, and look at the database configuration.

The confluence.cfg.xml will be set correctly by the installer, the doc is about repairing systems that may have missed the full upgrade.

You need to correct BOTH of these, not just one.


author: NicoDeluxe
body: hmmm

There are several options for fixing this:

    [mysqld]...transaction-isolation=READ-COMMITTED...

or

    <properties>...    <property name="hibernate.connection.isolation">2</property>...<properties>

i cannot enter into the mysql.ini cause its a managed hosting


author: Nic Brough -Adaptavist-
body: Yes, that is a little misleading. You need to set it on the database side for it to persist.


author: coiram
body: [Frantisek Bekes](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2050979) solution has been the only one that has worked so far .

I would suggest Atlassian to review their "official" documentation.