Please verify if the connection url you used in the connection string is valid for MySQL. JDBC (4.0 ? not sure if the same applies to previous versions as well) checks if there is a driver accepting a given connection url.
posted 2 years ago
Connection con = DriverManager.getConnection("jdbc:mysql:thin://localhost/jdbcdemo","root","");
No idea what is being done here. I've installed wamp server and created db there. My database name is jdbcdemo.
MySQL version - 5.6.12
profile being used in MySQL : Username - root password -"".