[support] lock.inc problem? -

Fernando Conceição fernando at jaguaribe.net
Tue May 17 19:20:02 UTC 2011


Em 17-05-2011 14:37, Dave Stevens escreveu:
> 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
>
>
This looks like a database issue. Are you sure that the 
username/password/database name/host are the right ones in drupal 
configuration(in the file sites/default/settings.php)? This error is 
because it tries to connect to database and can not.

Fernando.


More information about the support mailing list