Update: This is a link to the post that contains the instructions we were following http://oxfordrepo.blogspot.com/2008/02/creating-web-application-from-scratch.html
We were setting up mysql for installing repository software as web interface for fedora.
As part of the process mysql was required, but we got stumped at the following error during the installation of Fedora:
java.net Connection Exception : connection refused and a stack trace.
This error indicated it was more a connectivity issue than software. To fix this we tried the following:
mysql -h 127.0.0.1 –user=user –password=pass databaseName
this gave us a similar error:
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (110)
To fix this problem we modified the firewall to accept ALL traffic to localhost (on loopback)
# Allow unlimited traffic on loopback
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
It now connects and we can continue installing :)