Shrirang Kadale
Shrirang Kadale

Reputation: 498

Migrating to OpenJDK 11, which version of MySql connector is compatible for java 11?

I am trying to migrate my application from Java 8 to OpenJDK 11. I used MySql connector version 5 and its working fine. Is it required to upgrade MySql connector JAR to version 8.0? I read about it from below link but they do not mentioned about Java 11.

https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-versions-java.html

Upvotes: 2

Views: 13135

Answers (2)

Binita Bharati
Binita Bharati

Reputation: 5898

I tested a sample mysql API to read a table. The configuration details are as below:

mysql-connector-java : version 8.0.21
java : openjdk version "11.0.8"

It was working fine.

Upvotes: 0

BSeitkazin
BSeitkazin

Reputation: 3059

According to your reference, and this, we clearly can see that, MySQL connector version 5 uses JDBC version 3.0, 4.0, 4.1, 4.2.

MySQL connector version 8 uses JDB version 4.2.

Although JDBC version 4.2 supports JDK version 1.8.x, the new (for today) JDBC version 4.3 supports JDK version 9.

So, we wait new version of the JDBC, which supports JDK 11, then wait until MySQL supports new version of JDBC driver.

Upvotes: 4

Related Questions