Solution to SQLException: No suitable driver found for jdbc:mysql

Just a quick fix. Instead of: Connection con = null;   String url = "jdbc:mysql://localhost:3306/mysql"; String user = "user"; String password = "password"; con = DriverManager.getConnection(url, user, password);Connection con = null; String url = "jdbc:mysql://localhost:3306/mysql"; String user = "user"; String password = "password"; con = DriverManager.getConnection(url, user, password); You should have: Connection con = null; […]