Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

You have specified a database that is not empty, please specify an empty database.

I had Jira working using a postgresql database, but as it was the only DB in postgres I made the (eventful) decision to switch to MySQL. I followed the setup  instructions and specified a completely empty database, but now I receive the error message: "You have specified a database that is not empty, please specify an empty database. If you want to upgrade an existing installation, please follow these instructions instead." I ran config.sh and after entering the MySQL information, I ran its test and it worked fine. However, when I restart Jira it starts in the setup routine, and when I enter the identical MySQL information for the empty database, it fails with the above message. When I copy the saved version of dbconfig.xml for the postgresql database, Jira still starts in the setup routine. When the setup routine starts and I select "My own database" for the database connection, it is empty (as if it didn't read the dbconfig.xml file).

How can I get Jira running with either the old postgresql database or a new MySQL database?! Thanks in advance...

1 answer

1 accepted

0 votes
Answer accepted

I figured out my mistake. My dbconfig.xml permissions were set incorrectly. Something that should have been checked earlier...

Hi,

Could you please share the changes you made to dbconfig.xml file

I found the problem was my dbconfig.xml file had an owner and group of root with file permissions set so only the owner could read it. I changed the owner from root to jira, which allowed it to be read.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you