When I go to database version, it is not the correct version. I am using MySQL 8.0.16 but the version showed is 184.108.40.206. Moreover, I have the 8.14.1 Jira version. I tried to connect jira with database using the script from the installing path unsuccessfully. Any idea what might be happening?
I mean if I go from Jira Administration --> System --> System support --> System info. See below:
Moreover, I checked the log catalina.out and I found this:
___ Database Configuration _________________
Loading entityengine.xml from : file:/opt/atlassian/jira/atlassian-jira/WEB-INF/classes/entityengine.xml
Entity model field type name : mysql
Entity model schema name :
Database Version : MySQL - 220.127.116.11
Database Driver : MySQL Connector Java - mysql-connector-java-5.1.47 ( Revision: fe1903b1ecb4a96a917f7ed3190d80c049b1de29 )
I was looking for a similiar issue and I found this issue (https://jira.atlassian.com/browse/JRASERVER-71752). However, I am not sure if it could be related with that.
Ok, the version that field shows is a simple extract - Jira is not trying to be clever, it's just reporting what the database driver and database service report when it asks "hey, what version are you?"
You've blanked out the JNDI and Database URL (thank you for thinking securely by default!), so I don't know which one you are using. Most of us use the database url as it's easier to set up, and if you are using that, I would want to start by using the url to log a mysql command line client into that database - it should tell you what the version of the server is as you log in. If you use something a bit more gui-y, then "SELECT VERSION()" should tell you.
The question is what those return?
It is also worth checking that it says MySQL and not Percona or MariaDB - I don't think the more recent versions of Jira do this, but there's a couple of older versions that would return odd numbers if connected to Maria (you shouldn't do that, it's not supported)
I ran the command "SELECT VERSION()" on GUI and the version is 8.0.15. From command line, I tested the connection between SQL and Jira and it worked successfully.
telnet df-hub-db-mysql02.mysql.database.azure.com 3306
Connected to cr5.westeurope1-a.control.database.windows.net.
Escape character is '^]'.
18.104.22.168\▒▒▒▒▒▒▒▒▒▒!?▒▒▒▒▒▒▒▒▒▒▒▒mysql_native_passwordConnection closed by foreign host.
As you can see the version is not the correct.
On the other hand, I have this parameter on dbconfig.xml:
If I substitute the value to mysql8 and restart Jira I get the next message:
The database type in your dbconfig.xml is set up to MySQL 8.0 and your MySQL version is different. Consider using MySQL 8.0 database type instead
The tomcat seems to be the correct
java -cp lib/catalina.jar org.apache.catalina.util.ServerInfo
Server version: Apache Tomcat/8.5.57
Server built: Jun 30 2020 21:49:10 UTC
Server number: 22.214.171.124
OS Name: Linux
OS Version: 5.0.0-1023-azure
JVM Version: 1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
JVM Vendor: Private Build
I'm using the connector mysql-connector-java-8.0.16.jar
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