are you creating the connection to your remote MySQL Database? Or to a local testing server?
If you are trying to create a connection to your remote mySQL Server, you should double check first with the host to see if the MySQL Server allows connections from outside computers.