Re: java.net.ConnectException: connection refused
Posted by:
Tam Tam
Date: April 03, 2007 07:06PM
Just for anyone who has the same problems on Linux Slackware, and it maybe a solution for other distros.
Had the same problem as above...couldnot find a fix in the thread. I ran
ps xa | grep mysqld
The result showed that mysqld was running with the option --skip-networking.
Now this had been commented out in my.cnf. So why was it running.
Well I had previously started the server with
#/etc/rc.d/rc.mysqld start
on the advice of someone on another forum, I had problems running the server.
I stopped the server and then restarted with mysqld_safe &
Checked with ps xa | grep mysqld
No --skip-networking present.
I then run my java program again and everything was fine.