Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "localhost:3306"'
<p>So I have just these two lines...</p>

<pre><code>Class.forName("com.mysql.jdbc.Driver");
    Connection connectionToSql = DriverManager.getConnection("jdbc:mysql://:localhost:3306/questions", "root", "root");
</code></pre>

<p>And I get exception saying:</p>

<pre><code>Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "localhost:3306"'.
</code></pre>

<p>What should I do?</p>