How to clean a MSSQL database to be able to install JIRA again?


I've completely upgraded my JIRA from 4.2 to 5.0.1 on a test server. For this upgrade, I've created a new database (MSSQL). Everything worked fine.

Before upgrading on the production system, I would like to check again the JIRA upgrade, so I uninstalled JIRA 5.0.1 and started performing a new installation.

After installing again JIRA 5.0.1, in the setup screen, I’m receiving this message: "The database specified is not empty Please specify an empty database for your JIRA installation".

Could you please give me the procedure to clean this database to be able to continue the JIRA setup on this database?

Thank you!


2 answers

1 accepted

1 vote
Accepted answer

You need to drop the tables, that can be accomplished through something like the mysql workbench or even script based (see )

The 2nd link you mention is very helpfull. Thank you Andy.


1 vote

Drop all the tables in the database - that will clear them out and Jira will happily create them all afresh.

Nagging doubt though - you say you're upgrading? Did you start with an empty database and import from XML?


For info, I've created a new db for upgrading JIRA to 5.0.1. then I completed the procedure to copy data from old db to the new one: everything went fine.

Thank you for your help; I'll keep you informed on this subject.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,663 views 18 21
Read article

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