![Class forname com mysql jdbc driver](https://kumkoniak.com/36.jpg)
![class forname com mysql jdbc driver class forname com mysql jdbc driver](https://i.ytimg.com/vi/78ivMmgHoqE/maxresdefault.jpg)
![class forname com mysql jdbc driver class forname com mysql jdbc driver](http://www.avajava.com/tutorials/database/how-do-i-use-jdbc-to-query-a-mysql-database/how-do-i-use-jdbc-to-query-a-mysql-database-01.gif)
Public static void main(String args) throws Exception Output Loading class `'. The new driver class is `.jdbc.Driver will be thrown. If the older version of the MySQL JDBC driver class is used in the Java application and the latest version of the MySQL JDBC driver jar is used in the Java class path, the Java driver class can not be loaded. In this scenario, the exception Loading class `’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. The complete exception error message will be as shown below.
![class forname com mysql jdbc driver class forname com mysql jdbc driver](https://media.cheggcdn.com/media%2F5fb%2F5fbd047a-6026-4fa7-859e-5c27abc487c0%2FphpEqSfhs.png)
If the older version of the mysql database is used, the MySQL JDBC driver jar must be downgraded. If the MySQL JDBC driver class is upgraded to the latest version in the Java application, the exception will be resolved. This is why the exception will be thrown. If the older version of the driver class is configured and the new MySQL JDBC driver jar is used in the Java class path, Java could not load the older version of the driver class. The MySQL JDBC driver class is updated after version 5.x.x of mysql. This exception will be shown in framework such as spring, spring boot, hibernate etc. occurs because the deprecated mysql driver class is configured or used in the mysql database connection.
![Class forname com mysql jdbc driver](https://kumkoniak.com/36.jpg)