I\'ve been having a problem with mySQL database connectivity. I\'m getting an error:
No suitable driver found for jdbc:mysql://127.0.0.1/sakila.
Add the following
String driver = "com.mysql.jdbc.Driver"; Class.forName(driver).newInstance();
right before the line "con = DriverManager.getConnection(url, user, password);"
All you need to do is load the driver class before getting the connection from the drivermanager.