This section describes some of the more important changes to the Connector/J API going from version 5.1 to 8.0 and beyond. You might need to adjust your API calls accordingly:
- The name of the class that implements - java.sql.Driverin MySQL Connector/J has changed from- com.mysql.jdbc.Driverto- com.mysql.cj.jdbc.Driver. The old class name has been deprecated.
- 
The names of these commonly-used classes and interfaces have also been changed: - ExceptionInterceptor: from - com.mysql.jdbc.ExceptionInterceptorto- com.mysql.cj.exceptions.ExceptionInterceptor
- StatementInterceptor: from - com.mysql.jdbc.StatementInterceptorV2to- com.mysql.cj.interceptors.QueryInterceptor
- ConnectionLifecycleInterceptor: from - com.mysql.jdbc.ConnectionLifecycleInterceptorto- com.mysql.cj.jdbc.interceptors.ConnectionLifecycleInterceptor
- AuthenticationPlugin: from - com.mysql.jdbc.AuthenticationPluginto- com.mysql.cj.protocol.AuthenticationPlugin
- BalanceStrategy: from - com.mysql.jdbc.BalanceStrategyto- com.mysql.cj.jdbc.ha.BalanceStrategy
- MysqlDataSource: from - com.mysql.jdbc.jdbc2.optional.MysqlDataSourceto- com.mysql.cj.jdbc.MysqlDataSource
- MysqlDataSourceFactory: from - com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactoryto- com.mysql.cj.jdbc.MysqlDataSourceFactory
- MysqlConnectionPoolDataSource: from - com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSourceto- com.mysql.cj.jdbc.MysqlConnectionPoolDataSource
- MysqlXADataSource: from - com.mysql.jdbc.jdbc2.optional.MysqlXADataSourceto- com.mysql.cj.jdbc.MysqlXADataSource
- MysqlXid: from - com.mysql.jdbc.jdbc2.optional.MysqlXidto- com.mysql.cj.jdbc.MysqlXid