]> git.donarmstrong.com Git - roundcube.git/blob - config/db.inc.php.dist
Imported Upstream version 0.7
[roundcube.git] / config / db.inc.php.dist
1 <?php
2
3 /*
4  +-----------------------------------------------------------------------+
5  | Configuration file for database access                                |
6  |                                                                       |
7  | This file is part of the Roundcube Webmail client                     |
8  | Copyright (C) 2005-2009, The Roundcube Dev Team                       |
9  | Licensed under the GNU GPL                                            |
10  |                                                                       |
11  +-----------------------------------------------------------------------+
12
13 */
14
15 $rcmail_config = array();
16
17 // PEAR database DSN for read/write operations
18 // format is db_provider://user:password@host/database 
19 // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
20 // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql or sqlsrv
21
22 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
23 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
24 // Warning: for SQLite use absolute path in DSN:
25 // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646';
26
27 // PEAR database DSN for read only operations (if empty write database will be used)
28 // useful for database replication
29 $rcmail_config['db_dsnr'] = '';
30
31 // maximum length of a query in bytes
32 $rcmail_config['db_max_length'] = 512000;  // 500K
33
34 // use persistent db-connections
35 // beware this will not "always" work as expected
36 // see: http://www.php.net/manual/en/features.persistent-connections.php
37 $rcmail_config['db_persistent'] = FALSE;
38
39
40 // you can define specific table names used to store webmail data
41 $rcmail_config['db_table_users'] = 'users';
42 $rcmail_config['db_table_identities'] = 'identities';
43 $rcmail_config['db_table_contacts'] = 'contacts';
44 $rcmail_config['db_table_contactgroups'] = 'contactgroups';
45 $rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers';
46 $rcmail_config['db_table_session'] = 'session';
47 $rcmail_config['db_table_cache'] = 'cache';
48 $rcmail_config['db_table_cache_index'] = 'cache_index';
49 $rcmail_config['db_table_cache_thread'] = 'cache_thread';
50 $rcmail_config['db_table_cache_messages'] = 'cache_messages';
51
52
53 // you can define specific sequence names used in PostgreSQL
54 $rcmail_config['db_sequence_users'] = 'user_ids';
55 $rcmail_config['db_sequence_identities'] = 'identity_ids';
56 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
57 $rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids';
58 $rcmail_config['db_sequence_cache'] = 'cache_ids';
59 $rcmail_config['db_sequence_searches'] = 'search_ids';
60
61
62 // end db config file
63