问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/54018163/migrating-to-openjdk-11-which-version-of-mysql-connector-is-compatible-for-java