This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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).
 
 
subject: Communication failure during handshake
 
Similar Threads
error comes while connecting to database please see the error
Connecting a Java app. to a MySql DB
problem in connecting on multiple mysql database versions
not able to connect to mysql database
JDBC drivers