source: github/config/db.inc.php.dist @ e64fe07

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since e64fe07 was e64fe07, checked in by till <till@…>, 6 years ago

# ERRATA r783 : of course persistant connections are disabled by default now
+ extended the comment (alibi) in regard to persistant connections

  • Property mode set to 100644
File size: 2.2 KB
Line 
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, RoundCube Dev. - Switzerland                      |
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/databse
19// currentyl suported db_providers: mysql, sqlite
20
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';
24
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'] = '';
28
29// database backend to use (only db or mdb2 are supported)
30$rcmail_config['db_backend'] = 'db';
31
32// maximum length of a query in bytes
33$rcmail_config['db_max_length'] = 512000;  // 500K
34
35// use persistent db-connections
36// beware this will not "always" work as expected
37// see: http://www.php.net/manual/en/features.persistent-connections.php
38$rcmail_config['db_persistent'] = FALSE;
39
40
41// you can define specific table names used to store webmail data
42$rcmail_config['db_table_users'] = 'users';
43
44$rcmail_config['db_table_identities'] = 'identities';
45
46$rcmail_config['db_table_contacts'] = 'contacts';
47
48$rcmail_config['db_table_session'] = 'session';
49
50$rcmail_config['db_table_cache'] = 'cache';
51
52$rcmail_config['db_table_messages'] = 'messages';
53
54
55// you can define specific sequence names used in PostgreSQL
56$rcmail_config['db_sequence_users'] = 'user_ids';
57
58$rcmail_config['db_sequence_identities'] = 'identity_ids';
59
60$rcmail_config['db_sequence_contacts'] = 'contact_ids';
61
62$rcmail_config['db_sequence_cache'] = 'cache_ids';
63
64$rcmail_config['db_sequence_messages'] = 'message_ids';
65
66
67// end db config file
68?>
Note: See TracBrowser for help on using the repository browser.