There are currently two MySQL Connector/J versions available:
Connector/J 8.0 (formerly Connector/J 6.0; see Changes in MySQL Connector/J 8.0.7 for an explanation of the version number change) is a Type 4 pure Java JDBC 4.2 driver for the Java 8 platform. It provides compatibility with all the functionality of MySQL 5.6, 5.7, and 8.0. Connector/J 8.0 provides ease of development features, including auto-registration with the Driver Manager, standardized validity checks, categorized SQLExceptions, support for large update counts, support for local and offset date-time variants from the
java.timepackage, support for JDBC-4.x XML processing, support for per connection client information, and support for the
Connector/J 5.1 is also a Type 4 pure Java JDBC driver that conforms to the JDBC 4.2 specification. It provides compatibility with all the functionality of MySQL 5.6, 5.7, and 8.0. Connector/J 5.1 is covered by its own manual.
The following table summarizes the Connector/J versions available, along with the compatibility information for different versions of JDBC, MySQL Server, and Java, as well as the support status for each of the Connector/J versions:
Table 2.1 Summary of Connector/J Versions
|Connector/J version||JDBC version||MySQL Server version||JRE Required||JDK Required for Compilation||Status|
|8.0||4.2 1||5.6, 5.7, 8.0||JRE 8 or higher||JDK 8.0 or higher3||General availability. Recommended version.|
|5.1||3.0, 4.0, 4.1, 4.2||5.62, 5.72, 8.02||JRE 5 or higher2||JDK 5.0 AND JDK 8.0 or higher3||General availability|
1 Connector/J 8.0 implements JDBC 4.2. While Connector/J 8.0 works with libraries of higher JDBC versions, it returns a
SQLFeatureNotSupportedExceptionfor any calls of methods supported only by JDBC 4.3 and higher,.
2 JRE 8 or higher is required for Connector/J 5.1 to connect to MySQL 5.6, 5.7, and 8.0 with SSL/TLS when using some cipher suites.
3 A customized JSSE provider might be required to use some later TLS versions and cipher suites when connecting to MySQL servers. For example, because Oracle's Java 8 releases before 8u261 were shipped with JSSE implementations that support TLS up to version 1.2 only, you need a customized JSSE implementation to use TLSv1.3 on those Java 8 platforms. Oracle Java 8u261 and above do support TLSv1.3, so no customized JSSE implementation is needed.