Upgrade your connector/j driver to 5.0.3 (mm-mysql-2.0.4 that we bundle with 2.2.0 is not fully compatible with Mysql 4.1).

Then make sure that you telnet port 3306 and the connection is accepted by mysql, otherwise you have misconfigured mysql. Check your my.cnf and remove the "skip networking" part if you have it, or check that if you have a "bind-address" configuration it is correct (e.g: 127.0.0.1).

Stefano

Raghavendra Setty wrote:
I am getting an exception, and the stack is as below:
[..]
Caused by: 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.lang.NumberFormatException)
        at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)
        at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to