Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Migration from embedded HSQL database to MySQL

I have a completely functional Confluence Server system with quite a bit of data and attachments.  I would like Confluence to point to a local MySQL database (already installed and configured) rather than the current HSQL database.  The articles that I've found talk about setting this during initial installation.  How can I point Confluence to MySQL now that I've been up and running a year or so?

1 answer

0 votes

You can edit the confluence.cfg.xml file in the home directory to swap over, but a lot of the stuff in it is quite obscure and it would be a very good idea to work from an example copy.

An easy cheat would be to run an install of a new system (on the same version) and configure it for your new MySQL database, let it get to the point where you can log in, then stop it and then you'll be able to do a direct comparison on a MySQL vs H2 config files and pretty much copy and paste all the settings into the existing ones.

This is really beating me up.  I found a good xml from a previous Confluence/MySQL installation and tried numerous permutations on the XML without success.

Below are the differences I detected in "/var/atlassian/application-data/confluence/confluence.cfg.xml". Other than the id, licenses and keys of course. It just won't start. I go back to the original XML and it's fine (on H2).


<property name="hibernate.connection.driver_class">org.h2.Driver</property>
<property name="hibernate.dialect">com.atlassian.confluence.impl.hibernate.dialect.H2V4200Dialect</property>


<property name="hibernate.c3p0.preferredTestQuery">select 1</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://</property>
<property name="hibernate.dialect">com.atlassian.confluence.impl.hibernate.dialect.MySQLDialect</property>

Daniel Ebers Community Leader Dec 27, 2020

For a MySQL setup a driver must be downloaded separately and put into filesystem.
Maybe this is already the obstacle.

Is there anything visible from logs as for the details when you say "it just don't start"?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

79 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you