Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

import sql database

scott streed January 21, 2017

I used the below to create and compress a backup of my mysql JIRA database:

     #mysqldump -u jiradbuser -p  jiradb | gzip -9 > backupjiradb.sql.gz

To uncompress:

   #gunzip backupjiradb.sql.gz

How do I restore the backup?

    #mysql -u jiradbuser –p jiradb < backupjiradb.sql                      does not work?

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
January 21, 2017

It's not an "import", it would be an "over write".  The source and target versions of JIRA would need to be identical for it to work as well.

 

Suggest an answer

Log in or Sign up to answer