Error with database

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

2 answers

1 vote

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.

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:

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.

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

Yes, that is a little misleading.  You need to set it on the database side for it to persist.

0 votes

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;

Yes, that's what the docs tell you to do.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,116 views 17 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you