Pb on connection to mysqld deamon

Pb on connection to mysqld deamon

am 10.03.2006 17:48:37 von ouaddari

Hello,

I'm using mysql 3.23.39, and i have a java client connection to mysql
deamon.
Today, we have a problem in a customer sites to connect to mysql deamon.
Here after the error mg : "java.sql.SQLException: Cannot connect to
MySQL server on localhost:3306. Is there a MySQL server running on the
machine/port you are trying to connect to? (java.io.EOFException)"

In our client, we have this exceptions in the .err file :
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:226)
at org.gjt.mm.mysql.MysqlIO.readPacket(MysqlIO.java:795)
at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:395)
at org.gjt.mm.mysql.Connection.(Connection.java:231)
at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at
com.alcatel.A1300.Database.mySQLCommand.openConnection(mySQL Command.java:83)

Have you any idea about this problem ?
Thanks in advance.




--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org

Re: Pb on connection to mysqld deamon

am 14.04.2006 21:20:09 von Valeriy Kravchuk

Hi,

> I'm using mysql 3.23.39, and i have a java client connection to mysql
> deamon.
> Today, we have a problem in a customer sites to connect to mysql deamon.
> Here after the error mg : "java.sql.SQLException: Cannot connect to MySQL
> server on localhost:3306. Is there a MySQL server running on the
> machine/port you are trying to connect to? (java.io.EOFException)"
>
> In our client, we have this exceptions in the .err file :
> java.io.EOFException
> at java.io.DataInputStream.readByte(DataInputStream.java:226)
> at org.gjt.mm.mysql.MysqlIO.readPacket(MysqlIO.java:795)
> at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:395)
> at org.gjt.mm.mysql.Connection.(Connection.java:231)
> at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
> at java.sql.DriverManager.getConnection(DriverManager.java:457)
> at java.sql.DriverManager.getConnection(DriverManager.java:137)
> at
> com.alcatel.A1300.Database.mySQLCommand.openConnection(mySQL Command.java:83)

Please, specify what Connector/J version was used.

> Have you any idea about this problem ?

Did MySQL server worked at that time? Do you have error log to check?

There are man ideas to check. Maybe, it just crashed. Or somebody installed
a firewall amond you client and MySQL server. We need a lot of additional
information and repeatable test case to call this a bug.

Also, please, upgrade you server to 3.23.58 at least. Your version is REALLY
old.

Best regards,
--
Valeriy Kravchuk, Support Engineer
MySQL AB, Kiev, Ukraine, www.mysql.com


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org