aspose file tools*
The moose likes JDBC and the fly likes Communication failure during handshake Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Communication failure during handshake" Watch "Communication failure during handshake" New topic
Author

Communication failure during handshake

Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
Unable to create connection
java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?

what is this error pals?
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Looks like your MySQL server is not running.


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I think it sounds like a Driver problem, you'd get a connection refused error otherwise. Do you have the most up to date drivers?
Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
I am using mysql server version 4.1 The server is running.I dont think it is the driver problem because, another application with the same driver works!!!What could be the problem??
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
Maybe because of a firewall you may not be getting through. Try disabling any firewall you use(if any).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication failure during handshake