Documentation Home
MySQL Connector/J 6.0 Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 434.4Kb
PDF (A4) - 438.8Kb
EPUB - 134.1Kb
HTML Download (TGZ) - 108.8Kb
HTML Download (Zip) - 135.1Kb


Beta Draft: 2017-03-17

4.3.1.3 Changes in the Connector/J API

This section describes the changes to the Connector/J API going from version 5.1 to 6.0. You might need to adjust your API calls accordingly:

  • The name of the class that implements java.sql.Driver in MySQL Connector/J has changed from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver. The old class name has been deprecated.

  • The names of these commonly-used interfaces have also been changed:

    • ExceptionInterceptor: from com.mysql.jdbc.ExceptionInterceptor to com.mysql.cj.api.exceptions.ExceptionInterceptor

    • StatementInterceptor: from com.mysql.jdbc.StatementInterceptorV2 to com.mysql.cj.api.jdbc.interceptors.StatementInterceptorV2

    • ConnectionLifecycleInterceptor: from com.mysql.jdbc.ConnectionLifecycleInterceptor to com.mysql.cj.api.jdbc.interceptors.ConnectionLifecycleInterceptor

    • AuthenticationPlugin: from com.mysql.jdbc.AuthenticationPlugin to com.mysql.cj.api.authentication.AuthenticationPlugin

    • BalanceStrategy: from com.mysql.jdbc.BalanceStrategy to com.mysql.cj.api.jdbc.ha.BalanceStrategy.


User Comments
Sign Up Login You must be logged in to post a comment.