Connection error
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/test?user=&password=");
error:
Cannot load connection class because of underlying exception:'java.lang.NuberFormatException: For input string: "localhost"'.
What's the reason?
Subject
Written By
Posted
Connection error
September 23, 2004 06:22PM
September 23, 2004 07:19PM
September 25, 2004 09:42AM
September 28, 2004 06:33PM
November 30, 2004 03:32AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.