When running the update.php script, I am receiving the following error:

PDOException: SQLSTATE[HY000] [1045] Access denied for user: '@localhost' (Using password: YES) in drupal_get_installed_schema_version() (line 151 of /includes/install.inc).

This is the third time I'm trying this upgrade from 6 to 7 and consistently failing to
get the update script to run. I've followed the instructions meticulously. Can anyone offer any suggestions?


jscoble’s picture

From the error, it looks like you haven't specified a valid mysql user. Note the error message says Access denied for user :'@localhost'

The user string should be 'username@localhost', if a mysql user was specified. You can still get an access denied when a username is specified. In that case, it would mean that you need to grant the specified username adequate permissions to the database in question so that the update script can do what it needs to do. The database user you created for Drupal should already have the permissions needed and I'd use that username/password combination.

allenwest’s picture

This was my problem. The Username is Case Sensitive. I was trying to enter "username" during the Drupal install, but when I created my database I used "Username".
Once I entered it with the capital "Username" it worked.