New version submitted by TomB
[carbonphp.git] / Source / application / config / database.php
blob43ff7860bb854c5f5a802f26b78b374312db60bd
1 <?php
2 /*------------------------------------------------------------
3 * CarbonPHP framework (C) Tom Bell
4 * http://tombell.org.uk
5 *------------------------------------------------------------*/
7 if (!defined('CARBON_PATH'))
9 exit('Direct script access is not allowed.');
12 /*------------------------------------------------------------
13 * The active configuration group to use.
14 *------------------------------------------------------------*/
15 $active_group = 'default';
17 /*------------------------------------------------------------
18 * Whether you wish to use the active record class or not.
19 *------------------------------------------------------------*/
20 $active_record = true;
22 /*------------------------------------------------------------
23 * These are the details used to connect to, and select the
24 * database.
25 *------------------------------------------------------------*/
26 $database['default']['hostname'] = '';
27 $database['default']['username'] = '';
28 $database['default']['password'] = '';
29 $database['default']['database'] = '';
31 /*------------------------------------------------------------
32 * This is the database driver you wish to use when
33 * connecting to the database.
34 *------------------------------------------------------------*/
35 $database['default']['dbdriver'] = 'mysql';
37 /*------------------------------------------------------------
38 * This is the prefix for any tables if they are prefixed.
39 *------------------------------------------------------------*/
40 $database['default']['dbprefix'] = '';
42 /*------------------------------------------------------------
43 * Whether you wish to persistantly connect to the database.
44 *------------------------------------------------------------*/
45 $database['default']['pconnect'] = true;
47 /*------------------------------------------------------------
48 * Whether you wish to show database error messages.
49 *------------------------------------------------------------*/
50 $database['default']['db_debug'] = true;
52 /*------------------------------------------------------------
53 * Whether you wish to cache query data, and the path to
54 * where the cached data should be stored.
55 *------------------------------------------------------------*/
56 $database['default']['cache_on'] = false;
57 $database['default']['cachedir'] = CARBON_PATH . 'cache/';
59 /*------------------------------------------------------------
60 * The character set, and collation of the database.
61 *------------------------------------------------------------*/
62 $database['default']['char_set'] = 'utf8';
63 $database['default']['dbcollat'] = 'utf8_general_ci';