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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

133 views 0 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