5 messages in com.mysql.lists.javaRe: Connection link failure
FromSent OnAttachments
Jeff Mathis23 Oct 2002 10:34 
Mark Matthews23 Oct 2002 10:43 
Jeff Mathis23 Oct 2002 12:19 
Mark Matthews23 Oct 2002 12:24 
Mark Matthews25 Oct 2002 06:09 
Subject:Re: Connection link failure
From:Mark Matthews (ma@thematthews.org)
Date:10/23/2002 10:43:50 AM
List:com.mysql.lists.java

Jeff Mathis wrote:

hello all,

I'm trying to connect, and am getting this exception:

getting connection to jdbc:mysql://snow:3306/hera ... java.sql.SQLException: Communication link failure: java.io.IOException at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:883) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1338) at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1183) at com.mysql.jdbc.Connection.execSQL(Connection.java:1982) at com.mysql.jdbc.Connection.execSQL(Connection.java:1918) at com.mysql.jdbc.Statement.executeQuery(Statement.java:1188) at com.mysql.jdbc.Connection.connectionInit(Connection.java:1098) at com.mysql.jdbc.Driver.connect(Driver.java:313) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.predict.ndq.TestConnect.<init>(TestConnect.java:35) at com.predict.ndq.TestConnect.main(TestConnect.java:60)

I'm using the 3.01 beta release, and jdk1.40

any help?

thanks

jeff

What happens when you do something like 'telnet snow 3306' from a command prompt? You should get a response from MySQL. If not, then your MySQL isn't configured to do TCP/IP networking (which JDBC requires).

The README that comes with the driver covers some possible scenarios.

-Mark