D7 Lock out error

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
dskaggs's picture

I was recently working in a D7 install trying to get some slideshow views to work when I got this error:

PDOException: SQLSTATE[28000] [1045] Access denied for user 'username'@'localhost' (using password: YES) in lock_may_be_available() (line 167 of /usr/home/dskaggs/www/7_eleven/drupal/includes/lock.inc).

Now I've looked up other info on it within drupal.org its self and what it says is kinda disturbing as far as fixes go.

The most invasive appears to be having to restart mysql completely. Others include: leaving it alone for about an hour and then logging in( however that only works for a few mins), restarting apache, or just doing a complete reinstall of D7 and starting over.

Already tried restarting apache, but that didn't work.

thoughts, issues of your own in dealing with this kind of thing?

Comments

I get this error all the time

mrosas's picture

I get this error all the time when I'm setting up a new server (moving from production to a local environment). While it may look like an intimidating error, It simply means my database credentials aren't correct in my settings.php file. Hoping that helps.

Right on track

dskaggs's picture

Right on track, that fixed the issue. thanks for the help. :)

Weird one

Kristen Pol's picture

I have never seen that error... good to know what the root cause is :)