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

1 answer

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

867 views 23 12
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