Roundcube Community Forum

 

[Config] how to set mysql password

Started by YtseDrummer, October 08, 2007, 04:19:37 AM

Previous topic - Next topic

YtseDrummer

Hi everybody!

I'm installing roundcubemail-0.1-rc1.1 and I'm just editing

$rcmail_config[’db_dsnw’] = ‘mysql://roundcube:password@localhost/roundcube’;
in

db.inc.php

Now, I have no password on mysql, is it right this configuration:

$rcmail_config['db_dsnw'] = 'mysql://roundcube:@localhost/roundcubemail';

?

SKaero

Yes I think thats how you would set it up if you had no password on you mysql db.

YtseDrummer

QuoteDATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.

YtseDrummer

I set the password on mysql an then edit the configuration file in this way:

$rcmail_config['db_dsnw'] = 'mysql://roundcube:root@localhost/roundcubemail';

but it doesn't work, yet.


YtseDrummer

Quote$rcmail_config[’db_dsnw’] = ‘mysql://roundcube:password@localhost/roundcube’;

Is the red part for the system user?

Soewie

Quote from: YtseDrummer
Quote$rcmail_config[’db_dsnw’] = ‘mysql://roundcube:password@localhost/roundcube’;

Is the red part for the system user?

It's mysql://:@localhost/
so if you create a new MySQL user "roundcube" then indeed it is the correct username.