Posted by devotee on November 8, 2012 at 3:39pm
Hi. I'm new to Drupal so keep that in mind please.
I cloned a site with GIT so that I can work locally with it. There is a local database and the settings.php file has the correct information as far as I can tell. What could be the reason for this error-message?
"Error
The website encountered an unexpected error. Please try again later.
Error message
PDOException: SQLSTATE[28000] [1045] Access denied for user 'drupal'@'localhost' (using password: YES) in lock_may_be_available() (line 167 of C:\wamp\www\mywebsite_com\includes\lock.inc)."
Regards
Comments
Database user problem
This error occurs only if the database user specified in the settings.php file doesn't exists or don't have the permission to access the database.
If you are sure that the user exists then try giving privileges to the user by firing a query like
GRANT ALL PRIVILEGES ON drupalDB.* to drupalDBUser@localhost
Hth,
Sadashiv.