restoring jira from mysql dump: no issues imported


I am testing a restore from jira and it's mysql databases on a new server. Therefore i've made an sqldump and a tarball from the jira /data directory (with attachements and avatars).

On the new system with latest jira and mysql installed and running I imported the sql databases with common mysql commands. After that i copied the /data dir to the new machine and changed the rights for jira user.

After jira restart everything works, projects an Avatars/Attachements are there. BUT: most of the issues are gone (80% in one project and 100% in 3 other projects)! why does this happen? Are all data and settings stored in the database or do i have to backup jira-HOME either?

3 answers

1 accepted

7 votes
Daryl Chuah Atlassian Team May 01, 2013

Hi Elias

I guess you would need to perform a full reindexing first since you are restoring the database dump directly into JIRA.

Hopefully it helps!

Thanks for the info. Yep this is the correct resolution after a native DB restore.

1 vote
Richie Gee Atlassian Team May 01, 2013

Hi Elias,

This seems very unique case you have there and it might take a while to really diagnose whether what is causing this, I would like recommend you to migrate using the following steps to avoid similar problem

  1. Create xml backup instead of sql dump
  2. Backup your JIRA home directory and transfer it to the new machine
  3. Create an empty database on the new machine
  4. Install JIRA setting your home directory to the transferred home directory
  5. Connect JIRA to your empty database
  6. Start JIRA
  7. XML import (Restore System)

It is a new setup, and in my opinion, it is better to perform the upgrade in a problem free method rather than spending too much time on troubleshooting.

Hope this gives an idea to you, cheers :)

hi guys,

I just performed a full reindexing AFTER import of the sql databases. Now everything is working.

In atlassian docs XML backup is not recommended for production use (slow, no transaction security due to no db locking) so the decision was mysql dump.

Daryl Chuah Atlassian Team May 01, 2013

Glad to hear that everything is working fine for you right now :)

Please accept the answer if you found it useful :p

Hi I have used this method and it`s worked perfectly

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 11 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

33 views 0 5
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