When I try to run this code, I get a no suitable driver error. How would I fix this problem?
public class DBConnect {
public static void main(String[] args)
{
String url = "jdbc:mysql://***.***.***.**:3306/*******";
String user = "root";
String password = "root";
try {
Connection con = DriverManager.getConnection(url, user, password);
System.out.print("Connected");
} catch (SQLException e) {
e.printStackTrace();
System.out.println( e.getMessage( ) );
}
}
}