A default mysql install is not accessible across the network until you set its bind-address in the configuration file. The config file differs depending on your system.
So, if you’re getting Mysql Error 2003 (HY000) cannot connect to server… it is most likely that you haven’t set a bind address. After changing this setting, restart the mysql daemon/service.
Journalism is literature in a hurry. — Matthew Arnold