Relocate database

What are the steps to relocate my Jira database to a new partition on the same server with more space.

1 answer

1 accepted

1 votes

Stop Jira, stop the database server, move the data, reconfigure your database server to use the new location, restart the database server, restart Jira.

Jira doesn't actually care where the database is physically located, it talks to the database server, not the file system.

Thanks for the info. How to reconfigure the database to use the new location. Is that just the dbconfig.xml file?

No, you haven't understood what I said. You need to reconfigure the database to read its data from the new location. The dbconfig file tells Jira what database to connect to.

Ok. What are the steps to reconfigure the database to read its data from the new location? What files need to be changed?

I have no idea. You haven't told us what database server you are using.

Very heavy emphasis on the "not for production use" - I've moved HSQL test databases around using that method, and sometimes it works, and other times, you lose everything. Definitely not for production (there's other things that go "bang" if you use hsql as well...)

Hi,

If you are using HSQL database (The one which comes embedded with jira standalone and is not for production use) you can try followin:

1. stop jira

2. copy database folder mentioned in dbconfig.xml to new location

3. update dbconfig.xml with new location

4. start jira

BR,

Andris.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,022 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot