3

Careless error: mySQL access denied

http://drupal.org

I was recently running drupal on a windows machine with WAMP. I finally migrated from windows to ubuntu. Before I made the switch I backed up my database and various other important files. It wasn't until I wiped windows, booted up ubuntu, restored my files that I realized I didn't back up my actual website. *facepalm*

Well, at least I have my database.

I downloaded drupal 6.17 and tried to install it using my restored database. I put in mysql details, and the installer tells me "drupal is already installed." This tells me that the mysql credentials were correct, no? I deactivated all unnecessary modules in the database by setting status = 0.

When I go to http://localhost, I get:

  • warning: mysql_pconnect(): Access denied for user 'USER'@'MYSITE.com' (using password: YES) in /var/www/includes/common.inc(1699) : eval()'d code on line 7.
  • user error: Access denied for user 'USER'@'MYSITE.com' (using password: YES) in /var/www/includes/common.inc(1699) : eval()'d code on line 7.

The problem is, my settings.php has: $db_url = 'mysqli://SOMETHING:PASSWORD@localhost/drupal';

Notice the username and server are different. The error on the site shows my OLD credentials from before I migrated to ubuntu. Where is it getting this info? Regardless of what I put in default/settings.php, the mysql error always says the same thing.

read more

Read »
Created by Dplanet 1 year 48 weeks ago
Category: Installation   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Careless error: mySQL access denied

Recent comments