- Plesk for Linux
Java application is unable to connect to MySQL database with the following error in a browser and
CONFIG_TEXT: DriverManager.getConnection error: No suitable driver found for jdbc:mysql://localhost:3306/database
The URL to the database is specified correctly.
The driver for MySQL connection is present on the server, for example:
# ls -la /usr/share/java/ | grep jdbc
-rw-r--r-- 1 root root 125572 Jun 20 2017 tomcat-jdbc-7.0.56.jar
lrwxrwxrwx 1 root root 22 Jun 20 2017 tomcat-jdbc.jar -> tomcat-jdbc-7.0.56.jar
The Java application is using specific libraries for database connection.
Contact the application developer for code review to start using system libraries or include the required library to the WAR archive.