I'm setting up Drupal on a new site. The database exists, and I can connect to it from the command line using the mysql client. But Drupal reports:
Access denied for user 'myuser'@'www.myhost.com' (using password: YES)
I'm pretty sure I set $db_url correctly, because if I copy and paste from this:
$db_url = 'mysql://myuser:mypassword@www.myhost.com/drupal';
Into the appropriate places in this (including copying & pasting the password when prompted):
mysql -h www.myhost.com -u myuser -p drupal
...I connect with no problem. I also tried localhost for the host name (since it's also correct) but got the same error. I loaded the Drupal database at the command line this way, and have the files on the server, so I should be good to go. I've set up Drupal before but never encountered this specific problem.
Why can MySQL connect when Drupal can't?
For what it's worth:
Further details on request...