Re: Error :: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database '3306 table1
Posted by: xing chi
Date: October 04, 2010 04:26PM

Found the mistake localhost must be immediately followed by : insteard of /.

Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/dvd_collection","root","sai");

Options: ReplyQuote


Subject
Written By
Posted
Re: Error :: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database '3306 table1
October 04, 2010 04:26PM


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.