Drupal, mysql server settings

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-04-29T07:58:46Z Indexed on 2010/04/29 8:07 UTC
Read the original article Hit count: 391

Filed under:
|
|
|

hi,

I've a problem to configure database settings in Drupal. I will propose here some sample data:

Database Mysql:
Database: databaseName
User: user
Password: password
Server: server.com
Server Choice: mysqldb2 (in phpmyadmin I have this option and I can choose between mysqldb1 and mysqldb2 to access to the mysql server)

The error message I get is:

The mysql error was: Access denied for user: 'user@localhost' (Using password: YES).

I've tried the following lines in settings.php but I always get the same error message:

$db_url = 'mysql://user:password@localhost/databaseName'; 
$db_url = 'mysql://user:password@localhost/databaseName/mysqldb2'; 

The user and password work in phpmyadmin so I'm sure they are correct.

thanks

© Stack Overflow or respective owner

Related posts about drupal

Related posts about mysql