Documentation Home
Connectors and APIs Manual
Download this Manual

Connectors and APIs Manual  /  MySQL Connector/J Developer Guide  /  Connector/J Versions, and the MySQL and Java Versions They Require

3.2 Connector/J Versions, and the MySQL and Java Versions They Require

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.time package, support for JDBC-4.x XML processing, support for per connection client information, and support for the NCHAR, NVARCHAR and NCLOB data types.

  • 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 3.1 Summary of Connector/J Versions

Connector/J versionJDBC versionMySQL Server versionJRE RequiredJDK Required for CompilationStatus
8.04.2 15.6, 5.7, 8.0JRE 8 or higherJDK 8.0 or higher3General availability. Recommended version.
5.13.0, 4.0, 4.1, 4.25.62, 5.72, 8.02JRE 5 or higher2JDK 5.0 AND JDK 8.0 or higher3General availability


Notes
  • 1 Connector/J 8.0 implements JDBC 4.2. While Connector/J 8.0 works with libraries of higher JDBC versions, it returns a SQLFeatureNotSupportedException for 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 is shipped with a JSSE implementation that only supports TLSv1.2 and lower, you need a customized JSSE implementation to use TLSv1.3 on Oracle's Java 8 platform.