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

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 vote

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

0 vote
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
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 Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

84 views 0 5
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