Sometimes when you try to access MySQL, you will get an access denied message. There could be a multitude of reasons but if you are coming from a remote host, you could try execute the following command on the database server:
grant all privileges on database_name.* to ‘user’@’remote_ip or localhost’ identified by ‘YOUR_PASSWORD’ with grant option;