db.inc.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /*
  3. +-----------------------------------------------------------------------+
  4. | Configuration file for database access |
  5. | |
  6. | This file is part of the RoundCube Webmail client |
  7. | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
  8. | Licensed under the GNU GPL |
  9. | |
  10. +-----------------------------------------------------------------------+
  11. */
  12. $rcmail_config = array();
  13. // PEAR database DSN for read/write operations
  14. // format is db_provider://user:password@host/database
  15. $rcmail_config['db_dsnw'] = 'mysql://roundcube:%password%@localhost/roundcube';
  16. // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
  17. // PEAR database DSN for read only operations (if empty write database will be used)
  18. // useful for database replication
  19. $rcmail_config['db_dsnr'] = '';
  20. // database backend to use (only db or mdb2 are supported)
  21. //$rcmail_config['db_backend'] = 'mdb2';
  22. // maximum length of a query in bytes
  23. $rcmail_config['db_max_length'] = 512000; // 500K
  24. // use persistent db-connections
  25. // beware this will not "always" work as expected
  26. // see: http://www.php.net/manual/en/features.persistent-connections.php
  27. $rcmail_config['db_persistent'] = FALSE;
  28. // you can define specific table names used to store webmail data
  29. $rcmail_config['db_table_users'] = 'users';
  30. $rcmail_config['db_table_identities'] = 'identities';
  31. $rcmail_config['db_table_contacts'] = 'contacts';
  32. $rcmail_config['db_table_session'] = 'session';
  33. $rcmail_config['db_table_cache'] = 'cache';
  34. $rcmail_config['db_table_messages'] = 'messages';
  35. // you can define specific sequence names used in PostgreSQL
  36. $rcmail_config['db_sequence_users'] = 'user_ids';
  37. $rcmail_config['db_sequence_identities'] = 'identity_ids';
  38. $rcmail_config['db_sequence_contacts'] = 'contact_ids';
  39. $rcmail_config['db_sequence_cache'] = 'cache_ids';
  40. $rcmail_config['db_sequence_messages'] = 'message_ids';
  41. // end db config file
  42. ?>