Connection error
Posted by: Jingjing Duan
Date: September 23, 2004 06:22PM

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?

Options: ReplyQuote


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
October 28, 2004 11:02AM


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.