sandshakimi
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?
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?
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?
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?
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.
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?
www.mywebsite.com/user?
ASKER
How do I check rewritebase, rewriterules?
On the .htaccess file in the root directory. Do you have FTP access to the pages?
ASKER
Root directory of apache?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?