diff options
author | svncommit <devs@roundcube.net> | 2005-10-02 11:36:35 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2005-10-02 11:36:35 +0000 |
commit | 1676e1ebda38922b609c501b3c3c34b881302122 (patch) | |
tree | af115b449e30bac37d7cf0459ed95d88d32f1282 /config/db.inc.php.dist | |
parent | 968bdc7c90f718560b84eb3b7e8e1d02cf4270f3 (diff) |
Added PEAR:DB support plus database replication support
Diffstat (limited to 'config/db.inc.php.dist')
-rw-r--r-- | config/db.inc.php.dist | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/config/db.inc.php.dist b/config/db.inc.php.dist index fb6d2bb8b..5ee392b5c 100644 --- a/config/db.inc.php.dist +++ b/config/db.inc.php.dist @@ -14,21 +14,15 @@ $rcmail_config = array(); -// database engine (currently supported: mysql) -$rcmail_config['db_type'] = 'mysql'; +// PEAR database DSN for read/write operations +//format is db_provider://user:password@host/databse -// database host -$rcmail_config['db_host'] = 'localhost'; +$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail'; -// database user -$rcmail_config['db_user'] = 'roundcube'; - -// pwd -$rcmail_config['db_pass'] = 'pass'; - -// database name -$rcmail_config['db_name'] = 'roundcubemail'; +// PEAR database DSN for read only operations (if empty write database will be used) +// userful for database replication +$rcmail_config['db_dsnr'] = ''; // you can define specific table names used to store webmail data $rcmail_config['db_table_users'] = 'users'; |