ofcourse possible that I did something wrong but:
This page https://confluence.atlassian.com/adminjiraserver073/connecting-jira-applications-to-mysql-861253043.html explains step by step how to configure and connect MySQL for JIRA.
But it wasn't complete and I probably can prevent others from having the same trouble:
For getting JIRA to correctly startup instead of giving me a white error page I had to additionally do the following steps:
CREATE USER '<username>'@'<host>' IDENTIFIED BY "<pasword>";
CREATE DATABASE public CHARACTER SET utf8 COLLATE utf8_bin;
- 3. here you can skip the "IDENTIFIED BY" now since we already added the user in 1. But you have to grant the permissions for both databases! (I just granted ALL to make it simple)
GRANT ALL PRIVILEGES ON <jiradb>.* TO '<username>'@'<host>';
GRANT ALL PRIVILEGES ON public.* TO '<username>'@'<host>';
Go on with the rest of the manual. But then after finishing in the <jiraDataFolder( e.g. /var/...)>/dbconfig.xml you will still notice the line
and actually the catalina log complains that this name is only allowed for the H2 database type in non-productive mode (so it would not help to add the database with the name PUBLIC in capitals).
So all you have todo for finally get it running is to change it to
or whatever you called the second database and restart JIRA e.g.
sudo service jira restart
This finally worked for me and I could re-import our old (backup) database data into the new mysql setup.
Hi Atlassian community, A few months ago, we offered a sneak peak of the new hierarchy view on the roadmap. Thank you for all the feedback (and excitement) and for helping us shape the direction of...
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