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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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