blob: 4bb7a57075f42bf02a552edd47f5c84dee5062dc [file] [log] [blame]
Razican114ab092011-04-25 17:26:45 +02001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00002/*
3| -------------------------------------------------------------------
4| DATABASE CONNECTIVITY SETTINGS
5| -------------------------------------------------------------------
6| This file will contain the settings needed to access your database.
7|
Derek Allardb76fedd2010-08-12 16:14:10 -04008| For complete instructions please consult the 'Database Connection'
Derek Allard2067d1a2008-11-13 22:59:24 +00009| page of the User Guide.
10|
11| -------------------------------------------------------------------
12| EXPLANATION OF VARIABLES
13| -------------------------------------------------------------------
14|
15| ['hostname'] The hostname of your database server.
16| ['username'] The username used to connect to the database
17| ['password'] The password used to connect to the database
18| ['database'] The name of the database you want to connect to
Razican114ab092011-04-25 17:26:45 +020019| ['dbdriver'] The database type. ie: mysql. Currently supported:
20| mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
Derek Allard2067d1a2008-11-13 22:59:24 +000021| ['dbprefix'] You can add an optional prefix, which will be added
Razican114ab092011-04-25 17:26:45 +020022| to the table name when using the Active Record class
Derek Allard2067d1a2008-11-13 22:59:24 +000023| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
24| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
25| ['cache_on'] TRUE/FALSE - Enables/disables query caching
26| ['cachedir'] The path to the folder where cache files should be stored
27| ['char_set'] The character set used in communicating with the database
28| ['dbcollat'] The character collation used in communicating with the database
Derek Jones6ae70cc2011-04-19 16:13:48 -050029| NOTE: For MySQL and MySQLi databases, this setting is only used
Derek Jones3b9f88d2011-05-20 10:25:13 -050030| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
31| (and in table creation queries made with DB Forge).
Derek Jones6ae70cc2011-04-19 16:13:48 -050032| There is an incompatibility in PHP with mysql_real_escape_string() which
33| can make your site vulnerable to SQL injection if you are using a
34| multi-byte character set and are running versions lower than these.
35| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
Derek Jonesad1171a2010-03-10 14:18:38 -060036| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
37| ['autoinit'] Whether or not to automatically initialize the database.
Derek Allardb76fedd2010-08-12 16:14:10 -040038| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
Derek Jonesc34e5782010-03-02 17:35:55 -060039| - good for ensuring strict SQL while developing
Derek Allard2067d1a2008-11-13 22:59:24 +000040|
41| The $active_group variable lets you choose which connection group to
Razican114ab092011-04-25 17:26:45 +020042| make active. By default there is only one group (the 'default' group).
Derek Allard2067d1a2008-11-13 22:59:24 +000043|
44| The $active_record variables lets you determine whether or not to load
45| the active record class
46*/
47
Derek Allardb76fedd2010-08-12 16:14:10 -040048$active_group = 'default';
Derek Allard2067d1a2008-11-13 22:59:24 +000049$active_record = TRUE;
50
Derek Allardb76fedd2010-08-12 16:14:10 -040051$db['default']['hostname'] = 'localhost';
52$db['default']['username'] = '';
53$db['default']['password'] = '';
54$db['default']['database'] = '';
55$db['default']['dbdriver'] = 'mysql';
56$db['default']['dbprefix'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000057$db['default']['pconnect'] = TRUE;
58$db['default']['db_debug'] = TRUE;
59$db['default']['cache_on'] = FALSE;
Derek Allardb76fedd2010-08-12 16:14:10 -040060$db['default']['cachedir'] = '';
61$db['default']['char_set'] = 'utf8';
62$db['default']['dbcollat'] = 'utf8_general_ci';
63$db['default']['swap_pre'] = '';
Derek Jonesad1171a2010-03-10 14:18:38 -060064$db['default']['autoinit'] = TRUE;
Derek Jonesc34e5782010-03-02 17:35:55 -060065$db['default']['stricton'] = FALSE;
Derek Allard2067d1a2008-11-13 22:59:24 +000066
67
68/* End of file database.php */
Derek Jonesf0b39942010-03-25 10:08:20 -050069/* Location: ./application/config/database.php */