title: Error while connecting to Cloud SQL using jdbc driver
body: <p>I have written a basic java code to connect to my Cloud SQL instance. I have added the mysql jar connector in this project.</p>
  
  <pre><code>
  import java.sql.*;
  
  class MysqlCon {
      public static void main(String args[]) {
      try {
          Class.forName("com.mysql.jdbc.Driver");
          Connection con = DriverManager.getConnection("jdbc:mysql://project-name:us-central1:test-instance", "username", "password");
  
          Statement stmt = con.createStatement();
          ResultSet rs = stmt.executeQuery("select * from testing");
                  while (rs.next())
              System.out.println(rs.toString());
          con.close();
          } catch (Exception e) {
          System.out.println(e);
          }
      }
  }
  
  </code></pre>
  
  <p>I am unable to connect and receiving this exception</p>
  
  <p><code>com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "us-central1:test-instance"'.</code></p>
  
  <p>Any help is highly appreciated.
  Thanks!</p>