?
Solved

PDOException Error on Drupal Site?

Posted on 2012-09-04
8
Medium Priority
?
3,061 Views
Last Modified: 2012-10-02
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?
0
Comment
Question by:sandshakimi
  • 5
  • 3
8 Comments
 
LVL 17

Expert Comment

by:nanharbison
ID: 38367213
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
 
LVL 17

Expert Comment

by:nanharbison
ID: 38367318
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
 

Author Comment

by:sandshakimi
ID: 38367793
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Expert Comment

by:nanharbison
ID: 38368106
What are the RewriteBase and RewriteRules? Is this happening when you log in to:
www.mywebsite.com/user?
0
 

Author Comment

by:sandshakimi
ID: 38394528
How do I check rewritebase, rewriterules?
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 38396774
On the .htaccess file in the root directory. Do you have FTP access to the pages?
0
 

Author Comment

by:sandshakimi
ID: 38428754
Root directory of apache?
0
 
LVL 17

Accepted Solution

by:
nanharbison earned 1500 total points
ID: 38429189
root directory of the website.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question