Remote Database Connection
"Access denied" is indicating an authentication problem somewhere, either because of a bad user name or password, or a   MySQL host restriction.

Try testing the MySQL connection from the command line:

mysql -h hostname -u username -p database


You'll be prompted for the password.