title: Getting no suitable driver found error
body: <p>When I try to run this code, I get a no suitable driver error. How would I fix this problem?</p>
  
  <pre><code>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( ) );
          }
      }
  }
  </code></pre>