Link to home
Start Free TrialLog in
Avatar of sandshakimi
sandshakimiFlag for United States of America

asked on

PDOException Error on Drupal Site?

PDOException: SQLSTATE[28000] [1045] Access denied for user 'admin'@'localhost' (using password: YES) in lock_may_be_available() (line 167 of C:\apache\htdocs\includes\lock.inc).

This is the error I'm not getting trying to access my site (localhost).

I didn't modify my username, password, nor install any updates on Drupal.

What's the cause?
Avatar of nanharbison
nanharbison
Flag of United States of America image

Is this Drupal 6 or 7?

Have you changed the URL of the site? This happened to me when there were two domain names involved with the site and we switched the domain name and redirected the old one to the new one. I couldn't log using the redirected domain name.

And what is in the htaccess file? Is there a RewriteBase change or any RewriteRules?
One more thought, can you check your settings.php file and make sure the user name, password and host haven't been hacked?

I should ask this - were you getting into your site just fine and suddenly you get this message? Or has the site just been set up?
Avatar of sandshakimi

ASKER

Drupal 7

One day I was fine, the next day I got the error.

I checked the settings.php file in apache > htdocs > sites > default.

Nothing has been changed.
What are the RewriteBase and RewriteRules? Is this happening when you log in to:
www.mywebsite.com/user?
How do I check rewritebase, rewriterules?
On the .htaccess file in the root directory. Do you have FTP access to the pages?
Root directory of apache?
ASKER CERTIFIED SOLUTION
Avatar of nanharbison
nanharbison
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial