Forums

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

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

James Fox March 8, 2016

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 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.
March 8, 2016

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.

1 vote
Saqib Ahmad April 29, 2018

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.

0 votes
Pierre KANOHA
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2018

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
TAGS
AUG Leaders

Atlassian Community Events