Hi, this look like your database settings are incorrect. Check your settings.php and make sure that userid and password match your root user or connect to your database (phpMyAdmin) and check that the user on the settings.php exist and has the right permission.
Hopefully this will help.
Aissatou Diallo
-----Original Message----- From: Dave Stevens geek@uniserve.com To: support support@drupal.org; Dave Stevens geek@uniserve.com Sent: Tue, May 17, 2011 2:21 pm Subject: [support] lock.inc problem? -
Hi,
I'm getting an error accessing my transferred drupal 7 site, like this:
"PDOException: SQLSTATE[28000] [1045] Access denied for user 'ecobc.net'@'localhost' (using password: YES) in lock_may_be_available() (line 165 of /home/ecobc/public_html/drupal/drupal-7.0/includes/lock.inc)."
Background is that I had a virtual private server using OpenVZ and there were errors in the vm configuration. Since the site was not live it seemed easier to back up the site and then reinitialise the CentOS instance (5.6 up-to-date) and restore the backup. So I've done that. I use Virtualmin for backup and restore and have used it successfully before.
As soon as I attempt to access the restored site I get the message above. I've looked at the lock.inc code and the specified line, 165, is the beginning of the cited module (lock_may_be_available).
So is this a permission issue? or what?
Advice solicited and welcome.
Dave