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.

Options: ReplyQuote


Subject
Written By
Posted
Re: java.net.ConnectException: connection refused
April 03, 2007 07:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.