commit | author | age
|
4e17e6
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| Configuration file for database access | |
|
6 |
| | |
e019f2
|
7 |
| This file is part of the Roundcube Webmail client | |
bec969
|
8 |
| Copyright (C) 2005-2013, The Roundcube Dev Team | |
7fe381
|
9 |
| | |
T |
10 |
| Licensed under the GNU General Public License version 3 or | |
|
11 |
| any later version with exceptions for skins & plugins. | |
|
12 |
| See the README file for a full license statement. | |
4e17e6
|
13 |
+-----------------------------------------------------------------------+ |
T |
14 |
*/ |
|
15 |
|
|
16 |
$rcmail_config = array(); |
|
17 |
|
bec969
|
18 |
// Database connection string (DSN) for read+write operations |
AM |
19 |
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database |
|
20 |
// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv |
fafe5d
|
21 |
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php |
bec969
|
22 |
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646' |
1676e1
|
23 |
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail'; |
4e17e6
|
24 |
|
bec969
|
25 |
// Database DSN for read-only operations (if empty write database will be used) |
7cc38e
|
26 |
// useful for database replication |
1676e1
|
27 |
$rcmail_config['db_dsnr'] = ''; |
4e17e6
|
28 |
|
93ee83
|
29 |
// use persistent db-connections |
e64fe0
|
30 |
// beware this will not "always" work as expected |
T |
31 |
// see: http://www.php.net/manual/en/features.persistent-connections.php |
3cb42e
|
32 |
$rcmail_config['db_persistent'] = FALSE; |
93ee83
|
33 |
|
399db1
|
34 |
// you can define specific table (and sequence) names prefix |
AM |
35 |
$rcmail_config['db_prefix'] = ''; |