3 messages in com.mysql.lists.javaRe: error running MySQL & JDBC Driver
FromSent OnAttachments
cave...@ps.ge.com22 Mar 2001 10:53 
Mark Matthews22 Mar 2001 11:06 
Filip Hanik22 Mar 2001 11:07 
Subject:Re: error running MySQL & JDBC Driver
From:Mark Matthews (mmat@thematthews.org)
Date:03/22/2001 11:06:46 AM
List:com.mysql.lists.java

Old version of the driver, most likely. Please upgrade to 2.0.4 available at http://mmmysql.sourceforge.net/

-Mark

OK here's all the info

MySQL - MySQL Version 3.23.30-gamma (Windows) JDBC Driver - MM MySQL Driver Version 1.0

Here is the code and what follows is the error

--------------------------------------------------------------------------

--

--------------------------------------------------------------------------

-- import java.sql.*;

class mysqlTest { public static void main(String[] args) { String driverName = "org.gjt.mm.mysql.Driver"; String protocol = "jdbc:mysql"; String host = "localhost:3306"; String db = "mysql"; String user = "benjamca"; String pswd = "cbGVL04";

try { Class.forName(driverName); } catch(ClassNotFoundException e) { e.printStackTrace(); }

String url = protocol + "://" + host + "/" + db; Connection con = null;

try { con = DriverManager.getConnection(url, user, pswd); } catch(SQLException e) { e.printStackTrace(); } } }

--------------------------------------------------------------------------

--

-----------------------------------

C:\mysql\mm.mysql.jdbc-1.0>java mysqlTest java.sql.SQLException: Communication link failure: Bad handshake at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java) at org.gjt.mm.mysql.Connection.<init>(Connection.java) at org.gjt.mm.mysql.Driver.connect(Driver.java) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at mysqlTest.main(mysqlTest.java:28)

C:\mysql\mm.mysql.jdbc-1.0>

--------------------------------------------------------------------------

--

------------------------------------

"The warriors may take all the glory, but it's the engineers that build societies..." - Belana Torres, Star Trek Voyager

g GE Power Systems

Cavelle P. Benjamin IV - Edison Engineering Development Program Air Cooled Gas Turbine: Turbine Rotating Components 300 Garlington Road Greenville, SC 29602 * 864.254.2292 / 8*288.2292 * 864.254.3137 / 8*288.3137 * cave@ps.ge.com <mailto:cave@ps.ge.com>

To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java@lists.mysql.com instead.