Setting up Mysql DB giving a connection error

My Jira seems to be not connecting to the External MySQL DB.

To erradicate any DB issues, I tested the credentials using MySQL workbench and Glassfish server and managed to verify the information I entered was correct.

Afterwards I used the dbconfig.xml as per, and didnt have much luck with it too.

I then tried different settings on the URL and as soon as I removed parameteres on it the connection seems to work. Afterwards I tries different combinations and it seems that sessionVariables=storage_engine=InnoDB and useUnicode=true&characterEncoding=UTF8 doesnt seems to be working together, however if I only use one of them at a time it works perfectly.

My question is, do I need to have them there, and if so whats the most important parameter to have and what can I exclude from it?

4 answers

1 accepted

0 votes
Accepted answer

Hi Guys

Sorry it took a while to get back to you good people.

I found the answer to problem, it was down to my "MySQL/J connector", a similar issue (click here) was raised and when I investigated I found out that my connector was an affected version. Basically we shouldnt use MySQL/J connector versions between "5.1.15" till "5.1.18" when using JIRA.

I upgraded to lates (I think its now .22 or so) and it all started working well.

Thanks for help though.



Hi Yohan

1. First, check that the database is created on the MySQL instance and you grant the user the privileges to modify the database.

2. You do not need the sessionVariables and storage engine variables. I do not have those attribues and it works fine on my instance.

I have these parameters on my server.xml/dbconfig.xml (in the new version)


3. Make sure you delete these two lines, as you are not using an HSQL database


4. Make sure entity.xml is amended.(database type = mysql)

Hope it helps.


0 votes

Please try use the JIRA configuration Tool for test the DB connection there.

0 votes
Daryl Chuah Atlassian Team Jan 06, 2013

Hi Yohan

The important parameter you need to fill it up in the dbconfig.xml is :

others you can use the default value given in it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

808 views 3 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