how do you get the database out of read only mode to run the delete?

This question is in reference to Atlassian Documentation: Project Import fails with Unexpected import failure

how do you get the database out of read only mode to run the delete? I'm using the inbuilt DB

3 answers

1 accepted

0 vote

You don't.  There is no "read only" mode for the internal database (there isn't for external ones either - JIRA won't start if you hook it up to a database it can't get full read/write access to)

I suspect what you need to do is shut down JIRA completely, then connect your database editing tool to the hsql/h2 database in read/write mode (if the tool has any distinction) to do the edits.

while connecting to H2 db,  you need to set access mode in JDBC URL as:

jdbc:h2:file:C:\Program Files\Atlassian\Application Data\JIRA/database/h2db;ACCESS_MODE_DATA=rws

or

String url = "jdbc:h2:~/test;ACCESS_MODE_DATA=rws";

 

ACCESS_MODE_DATA=rws will enable your delete permission.

It is easy, run the application you're using to work on this DB in admin mode (you should have the admin rights of your session/system too)

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
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

215 views 4 9
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