Can't connect to MYSQL server error. The DB is a separate server.
http://dpaste.com/99702/
I typed nc dbserver 3306 and it returned:
[XXXXXX] 3306 (mysql) : Connection refused
Even in my GRANT options, I specified GRANT ALL TO *.* %...
My friend said that the web server is being prevented from establishing a TCP connection of any kind to that port.
I checked my.cnf, nothing special there. Could it be because of my IP tables?
Your friend is right. The remote server refused the connection. Either the MySQL server is not running, or something (a firewall?) is preventing the connection from going through.