What version of "mysql-connector-java" to include in pom.xml for ubuntu 14.04
5,526
Versions should not coincide
This is the two different project MySQL Connector/J and MySQL.
In my case MySQL version is:
mysql Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (i686) using readline 6.2
and mysql-connector-java
:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.28</version>
</dependency>
And that's work well!
Related videos on Youtube
Author by
Sanchit Jain
Updated on September 18, 2022Comments
-
Sanchit Jain over 1 year
The mysql server version installed is
5.5.38
as verified bysanchit@sanchit-3560:/$ mysql --version mysql Ver 14.14 Distrib 5.5.38, for debian-linux-gnu (x86_64) using readline 6.3
But in the official maven repository page the latest version is
5.1.32
. I think these versions are for MySQL installed in windows.Which version of
mysql-connector-java
should I use inpom.xml
?