Re: Communication failure during handshake. Is there a server running on localhost:3306?
Posted by: Mark Matthews
Date: December 02, 2004 09:34AM

If I had to venture a guess based on this information, it would be that you have an _old_ version of the JDBC driver laying around in your CLASSPATH (jre/lib/ext, WEB-INF/lib, $CLASSPATH, etc), and _that's_ the one your webapp is using.

When you use your standalone program, it's using the driver version you expect (3.0.16).

Pre-3.0.x or early 3.0.x drivers can't connect to MySQL-4.1.3 or newer, because the authentication protocol changed starting with MySQL-4.1.3.

Options: ReplyQuote


Subject
Written By
Posted
Re: Communication failure during handshake. Is there a server running on localhost:3306?
December 02, 2004 09:34AM


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.