Possible solution to Error: 2003(HY000): Can’t connect to MySQL Server on….. error

This is one possiible solution to Error: 2003(HY000): Can’t connect to MySQL Server on ******* error

this error may not be caused by wrong mysqld installation or configuration, a possible cause is that your connection is blocked by a firewall.

here’s the fix for linux systems.

on the mysql server machine, go to your shell as root and type

#/etc/init.d/iptables stop

this should disable the firewall

(if you’re not allowed to do this, ask your system admin to open connection on port 3306) :-]

Tags:

One Response to “Possible solution to Error: 2003(HY000): Can’t connect to MySQL Server on….. error”

  1. Upendra Says:

    Nice write up…usually I never reply to these thing but this time I will,Thanks for the great info.

Leave a Reply