Roundcube Community Forum

Release Support => Release Discussion => Topic started by: YtseDrummer on October 08, 2007, 04:19:37 AM

Title: [Config] how to set mysql password
Post by: YtseDrummer on October 08, 2007, 04:19:37 AM
Hi everybody!

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

Code: [Select]
$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:

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

?
Title: Re: [Config] how to set mysql password
Post by: SKaero on October 08, 2007, 04:29:14 AM
Yes I think thats how you would set it up if you had no password on you mysql db.
Title: Re: [Config] how to set mysql password
Post by: YtseDrummer on October 08, 2007, 06:50:47 AM
Quote
DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.
Title: Re: [Config] how to set mysql password
Post by: YtseDrummer on October 08, 2007, 09:39:39 AM
I set the password on mysql an then edit the configuration file in this way:

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

but it doesn't work, yet.

Title: Re: [Config] how to set mysql password
Post by: YtseDrummer on October 09, 2007, 03:12:27 AM
Quote
$rcmail_config[’db_dsnw’] = ‘mysql://roundcube:password@localhost/roundcube’;

Is the red part for the system user?
Title: Re: [Config] how to set mysql password
Post by: Soewie on October 09, 2007, 07:29:27 AM
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.