The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

MySql + JSP connectivity problem

Posted by Dhiraj Agrawal on January 17, 2002 at 1:47 AM

Hi ,
I m trying to connect to mysql with jsp using tomcat with following connection string :
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/testdhiraj?user=root&password=dh");
Statement statement = con.createStatement();

then i get an error :
java.sql.SQLException: Communication link failure: Bad handshake

can you help me solve this problem
Dhiraj Agrawal
Dhiraj_agrawal@yahoo.com



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us