Author Topic: [Config] how to set mysql password  (Read 7147 times)

Offline YtseDrummer

  • Newbie
  • *
  • Posts: 7
[Config] how to set mysql password
« 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';

?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: [Config] how to set mysql password
« Reply #1 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.

Offline YtseDrummer

  • Newbie
  • *
  • Posts: 7
Re: [Config] how to set mysql password
« Reply #2 on: October 08, 2007, 06:50:47 AM »
Quote
DATABASE ERROR: CONNECTION FAILED!

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

Offline YtseDrummer

  • Newbie
  • *
  • Posts: 7
Re: [Config] how to set mysql password
« Reply #3 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.


Offline YtseDrummer

  • Newbie
  • *
  • Posts: 7
Re: [Config] how to set mysql password
« Reply #4 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?

Offline Soewie

  • Newbie
  • *
  • Posts: 1
Re: [Config] how to set mysql password
« Reply #5 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.