Access denied for user 'XXXXXXX'@'%' to database 'database name' is a common error message when part of the supplied info is incorrect.
'XXXXXXXX' is the username you supplied
'%' means any or all databases on the specified database server. Sometimes the actual database server name is shown here.
@ is just a joining character
'database name' would be the database name you supplied
When a database user is created, it must also be granted permissions to access the database and its tables.
The error message is telling you that the permissions have not yet been granted ... or the specified user doesn't exist.
Since you're certain that the username/password are correct, it must be the permissions issue ... which you can usually handle via your hosting control panel. For specific help on your server, contact your hosting company's tech support.




