I recently updated my database software and migrated the drupal database info to the new system. I did not however clone the username and password for the database and am now getting the following error when accessing my drupal site:

PDOException: SQLSTATE[28000] [1045] Access denied for user 'XXXXXXXXXX'@'XXXXXXXXXX' (using password: YES) in lock_may_be_available() (line 167 of /home/content/.../html/includes/lock.inc).

I suspect my login info is wrong for the database as I did a similar conversion with another installation and it worked just fine. How do I change the login info for my drupal site without re-installing it? Do I have to run setup again or do I just need to edit an include file for everything to go back to normal?

Comments

vm’s picture

edit sites/default/settings.php $db_url where the DB connection information is stored