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?
sandshakimiAsked:
Who is Participating?
 
nanharbisonConnect With a Mentor Commented:
root directory of the website.
0
 
nanharbisonCommented:
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?
0
 
nanharbisonCommented:
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?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sandshakimiAuthor Commented:
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.
0
 
nanharbisonCommented:
What are the RewriteBase and RewriteRules? Is this happening when you log in to:
www.mywebsite.com/user?
0
 
sandshakimiAuthor Commented:
How do I check rewritebase, rewriterules?
0
 
nanharbisonCommented:
On the .htaccess file in the root directory. Do you have FTP access to the pages?
0
 
sandshakimiAuthor Commented:
Root directory of apache?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.