Moving a JIRA DB to another Sever

jiraguy October 17, 2012

Hi there,

We have setup a JIRA DB on the same server as the applicaiton itself and now would like to move the database to a dedicated DB server. Could anyone let me know what process we should follow to complete this so that I can copy the database to the new server and point the application to the correct new location for the database?

We are using CentOS and MySQL.

Cheers!

1 answer

1 accepted

4 votes
Answer accepted
LucasA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2012

Hi Jiraguy :)

This is a quite simple procedure:

- Stop JIRA;
- Take a full database dump;
- Restore this database on a new server; NOTE: Since you're using MySQL, make sure that you're using the same engine (InnoDB) on both servers;
- Edit the $JIRA_HOME/dbconfig.xml and set new IP address;
- Make sure that the JIRA user is able to login remotely on the new MySQL;
- Start JIRA and check if everything is working now.

Best regards,
Lucas Timm

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2012

Just a thought, but when doing a test restore, always disable your mail services until you KNOW you want the system to become live, or you'll end up with potentially live data on your 'test' restore. See https://confluence.atlassian.com/display/JIRA/Restoring+Data for more.

Suggest an answer

Log in or Sign up to answer