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

Confluence WAR: Moving MySQL database

Ernest Kim Dec 08, 2013

Hi all. I'm using the WAR version of Confluence. I'm in the process of switching MySQL database servers from one server to another server. Has anyone done this? The directions at: https://confluence.atlassian.com/display/DOC/Migrating+to+Another+Database, make it seem very complicated. I thought it would be a simple update a few files with the new server/database/login information. Any help would be appreciated.

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Ryan Goodwin Dec 08, 2013

If you're only moving the database to a new location, then you simply need to point your Confluence application to that db location. There's 2 possible scenarios:

1. You use a direct jdbc connection to your mysql database.

Check the <confluence.home>/confluence.cfg.xml for the "hibernate.connection.url"

This is the location of your database. Update the url to reflect your new mysql server location

Also update the hibernate.connection.password and hibernate.connection.username if necessary

2. You use a datasource connection to your mysql database.

If this is the case, then the confluence.cfg.xml file will have a datasource location defined instead of the direct connection information. The datasource is defined in Tomcat's server.xml file. Since you've deployed the WAR version of Confluence, this means Tomcat is installed separately from Confluence. Your catalina_home should contain a conf folder with the server.xml file. Check the server.xml file for your Confluence datasource. This is where you'll update the mysql database connection information.

Ernest Kim Dec 12, 2013

Thanks! This works.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,540 views 11 28
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