If the DB is on the same computer, you should use host=localhost, if it's on another machine, you have to make sure that a) the ports are forwarded properly, b) there isn't a firewall blocking access to the port, and c) that mysql is set up to allow remote connections.
|