4 +-----------------------------------------------------------------------+
5 | Configuration file for database access |
7 | This file is part of the RoundCube Webmail client |
8 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
11 +-----------------------------------------------------------------------+
15 $rcmail_config = array();
17 // PEAR database DSN for read/write operations
18 // format is db_provider://user:password@host/database
19 // currently supported db_providers: mysql, mysqli, pgsql, sqlite, mssql
21 $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
22 // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
23 // sqlite example: 'sqlite://./sqlite.db?mode=0646';
25 // PEAR database DSN for read only operations (if empty write database will be used)
26 // useful for database replication
27 $rcmail_config['db_dsnr'] = '';
29 // maximum length of a query in bytes
30 $rcmail_config['db_max_length'] = 512000; // 500K
32 // use persistent db-connections
33 // beware this will not "always" work as expected
34 // see: http://www.php.net/manual/en/features.persistent-connections.php
35 $rcmail_config['db_persistent'] = FALSE;
38 // you can define specific table names used to store webmail data
39 $rcmail_config['db_table_users'] = 'users';
41 $rcmail_config['db_table_identities'] = 'identities';
43 $rcmail_config['db_table_contacts'] = 'contacts';
45 $rcmail_config['db_table_session'] = 'session';
47 $rcmail_config['db_table_cache'] = 'cache';
49 $rcmail_config['db_table_messages'] = 'messages';
52 // you can define specific sequence names used in PostgreSQL
53 $rcmail_config['db_sequence_users'] = 'user_ids';
55 $rcmail_config['db_sequence_identities'] = 'identity_ids';
57 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
59 $rcmail_config['db_sequence_cache'] = 'cache_ids';
61 $rcmail_config['db_sequence_messages'] = 'message_ids';