469,266 Members | 1,768 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,266 developers. It's quick & easy.

Communication failure during handshake. 4.1 Java


Since I have installed mysql 4.1 I am getting this error on trying to
reach the db:

java.sql.SQLException: Communication failure during handshake. Is
there a server running on localhost:3306?

Mysql is running OK. I can access it with the command prompt, telnet,
sqlyog, but not Java.

I have tried using mysql-connector-java-2.0.14-bin.jar and
mysql-connector-java-3.1.3-beta-bin.jar. I am sure that the classpath
is OK, the url, user, password etc - I have had it all working with
mysql 4.0 for months, no problems. I just wanted to be able to use
subselects - but if I can't resolve this soon, I will have to return
to 4.0

Can anyone help?


John Pedersen

From my Ant script:

<property name="db.driver" value="com.mysql.jdbc.Driver" />
<property name="db.url" value="jdbc:mysql://localhost:3306/dbName" />
Jul 20 '05 #1
0 2254

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by Ilias Lazaridis | last post: by
reply views Thread by John Pedersen | last post: by
reply views Thread by Martin Wolfgart | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.