[ILUG] MySQL Problems

John Reilly jr at inconspicuous.org
Mon Apr 11 15:06:24 IST 2005


On Wed, 2005-04-06 at 18:38, Linux ilug wrote:
> Can anyone help me with this? I have a MySQL server running on port 3306 
> everytime I try to connect to the my sql database I get the following 
> returned from the java program I am running.
> 
> java.net.BindException: Address already in use
> SQL error--: 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.net.ConnectException) 0 08S01


The problem is with your java code.  It is trying to bind port 3306
which is already being used by MySQL - note the BindException.



-- 
John Reilly <jr at inconspicuous.org>




More information about the ILUG mailing list