File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Communication failure during handshake Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Communication failure during handshake" Watch "Communication failure during handshake" New topic

Communication failure during handshake

Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 161
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

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: 161
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: 1090
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:
subject: Communication failure during handshake
It's not a secret anymore!