Re: Communications link failure due to underlying exception
Posted by: M Jersan
Date: June 13, 2005 04:36AM

Hi All!
i got the same problem after installing the MySql and try to connect the Database..
i use the follwing code

Connection con=null;
Statement stmt=null;
ResultSet rs =null;

String url = "jdbc:mysql://localhost:3306/qbshell";
Class.forName("com.mysql.jdbc.Driver").newInstance();
out.println("Check 1");

So it throw the same exception which you guys taking about,, then i realize when i install the MySql i have choose the port number 3307. I change the port number 3307 , immediatley i got the connection..

Options: ReplyQuote


Subject
Written By
Posted
Re: Communications link failure due to underlying exception
June 13, 2005 04:36AM
June 09, 2006 04:42AM
August 24, 2006 05:27PM
July 15, 2007 04:27AM


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.