diff options
| author | sparc <sparc@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-02 11:36:35 +0000 |
|---|---|---|
| committer | sparc <sparc@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-02 11:36:35 +0000 |
| commit | 7a311c17244f5e561e431e7c5e73f66b138a552b (patch) | |
| tree | 5810f43b7dd92a8981eb95c1ac27968cd153bee1 /roundcubemail/config | |
| parent | 35cc90fc9f49a2dacd79d7c32e846f91e28af210 (diff) | |
Added PEAR:DB support plus database replication support
git-svn-id: https://svn.roundcube.net/trunk@12 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/config')
| -rw-r--r-- | roundcubemail/config/db.inc.php.dist | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/roundcubemail/config/db.inc.php.dist b/roundcubemail/config/db.inc.php.dist index fb6d2bb8b..5ee392b5c 100644 --- a/roundcubemail/config/db.inc.php.dist +++ b/roundcubemail/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'; |
