title: Couldn't connect JDBC to mysql?
body: <p>import java.sql.Connection;
  import java.sql.DriverManager;</p>
  
  <p>class JDBCTest {</p>
  
  <pre><code>private static final String url = "jdbc:mysql://localhost:mysql/employees";
  
  private static final String user = "shashank";
  
  private static final String password = "shashank14581";
  
  public static void main(String args[]) {
      try {
          Connection con = DriverManager.getConnection(url, user, password);
          System.out.println("Success");
  
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>}</p>