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 https://confluence.atlassian.com/display/JIRA052/Connecting+JIRA+to+MySQL#ConnectingJIRAtoMySQL-4.2ConnectingJIRAtoMySQLManually, 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?
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.
Regards
Yohan
Hi Yohan
The important parameter you need to fill it up in the dbconfig.xml is :
<
name
>defaultDS</
name
>
<
delegator-name
>default</
delegator-name
>
<
database-type
>mysql</
database-type
>
<
jdbc-datasource
>
<
url
>jdbc:mysql://dbserver:3306/jiradb?useUnicode=true&characterEncoding=UTF8&sessionVariables=storage_engine=InnoDB</
url
>
<
driver-class
>com.mysql.jdbc.Driver</
driver-class
>
<
username
>jiradbuser</
username
>
<
password
>password</
password
>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try use the JIRA configuration Tool for test the DB connection there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
url="jdbc:mysql://XX.xx.xx.xxx/jiradb4?useUnicode=true&characterEncoding=UTF8"
3. Make sure you delete these two lines, as you are not using an HSQL database
minEvictableIdleTimeMillis="4000"
timeBetweenEvictionRunsMillis="5000"
4. Make sure entity.xml is amended.(database type = mysql)
Hope it helps.
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.