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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

169 views 1 3
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