Meaning of Error Message
The error tells you the account you're trying to use to establish a connection does not have the access. (This can be due to incorrect values being used, or actually having no access.) After fixing the values you're using, you should check the account directly in the database and verify that it actually allows remote connections. (Sometimes they're set to allow local connections by default. See below.)
Also, the database account is not the same as a system/OS account; they're independent of the operating system user accounts, so check for those, too.
For example, a connection string should look more like this: [email protected], without the www part.
Database Account Access Confirmation
This is what you should check on the database side to verify if your account does have the remote connection privilege:
mysql> use mysql;
Database changed
mysql> select User, Host from user;
+------------------+-----------+
| User | Host |
+------------------+-----------+
| ray | % | <<--- allows remote conns; wildcard accepts any host
| root | 127.0.0.1 |
| root | ::1 | <<--- does NOT allow remote conns
| root | localhost |
+------------------+-----------+
6 rows in set (0.00 sec)
Notice that those that do not have the % wildcard and instead have a reference to the local host, either by name or IP address, will get an access denied error message. For example:
➜ ~ mysql -h data-hive.local -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'main-hive' (using password: YES)
To play around with account access settings, you should look at the MySQL Documentation.