blob: 58eec4b308a182d9a75677d30b98418ece3cb832 [file] [log] [blame]
Derek Jones37f4b9c2011-07-01 17:56:50 -05001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * NOTICE OF LICENSE
8 *
9 * Licensed under the Academic Free License version 3.0
10 *
Derek Jones61df9062011-10-21 09:55:40 -050011 * This source file is subject to the Academic Free License (AFL 3.0) that is
Derek Jonesf4a4bd82011-10-20 12:18:42 -050012 * bundled with this package in the files license_afl.txt / license_afl.rst.
13 * It is also available through the world wide web at this URL:
14 * http://opensource.org/licenses/AFL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
19 * @package CodeIgniter
20 * @author EllisLab Dev Team
21 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/)
22 * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
23 * @link http://codeigniter.com
24 * @since Version 1.0
25 * @filesource
26 */
Derek Allard2067d1a2008-11-13 22:59:24 +000027/*
28| -------------------------------------------------------------------
29| DATABASE CONNECTIVITY SETTINGS
30| -------------------------------------------------------------------
31| This file will contain the settings needed to access your database.
32|
Derek Allardb76fedd2010-08-12 16:14:10 -040033| For complete instructions please consult the 'Database Connection'
Derek Allard2067d1a2008-11-13 22:59:24 +000034| page of the User Guide.
35|
36| -------------------------------------------------------------------
37| EXPLANATION OF VARIABLES
38| -------------------------------------------------------------------
39|
40| ['hostname'] The hostname of your database server.
41| ['username'] The username used to connect to the database
42| ['password'] The password used to connect to the database
43| ['database'] The name of the database you want to connect to
Derek Jones37f4b9c2011-07-01 17:56:50 -050044| ['dbdriver'] The database type. ie: mysql. Currently supported:
Timothy Warrenab347582011-08-23 12:29:29 -040045 mysql, mysqli, pdo, postgre, odbc, mssql, sqlite, oci8
Derek Allard2067d1a2008-11-13 22:59:24 +000046| ['dbprefix'] You can add an optional prefix, which will be added
Derek Jones37f4b9c2011-07-01 17:56:50 -050047| to the table name when using the Active Record class
Derek Allard2067d1a2008-11-13 22:59:24 +000048| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
49| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
50| ['cache_on'] TRUE/FALSE - Enables/disables query caching
51| ['cachedir'] The path to the folder where cache files should be stored
52| ['char_set'] The character set used in communicating with the database
53| ['dbcollat'] The character collation used in communicating with the database
Derek Jones6ae70cc2011-04-19 16:13:48 -050054| NOTE: For MySQL and MySQLi databases, this setting is only used
Derek Jones3b9f88d2011-05-20 10:25:13 -050055| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
56| (and in table creation queries made with DB Forge).
Derek Jones6ae70cc2011-04-19 16:13:48 -050057| There is an incompatibility in PHP with mysql_real_escape_string() which
58| can make your site vulnerable to SQL injection if you are using a
59| multi-byte character set and are running versions lower than these.
60| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
Derek Jonesad1171a2010-03-10 14:18:38 -060061| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
62| ['autoinit'] Whether or not to automatically initialize the database.
Derek Allardb76fedd2010-08-12 16:14:10 -040063| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
Derek Jonesc34e5782010-03-02 17:35:55 -060064| - good for ensuring strict SQL while developing
Felix Balfoort5d581b62011-11-29 15:53:01 +010065| ['failover'] array - A array with 0 or more data for connections if the main should fail.
Derek Allard2067d1a2008-11-13 22:59:24 +000066|
67| The $active_group variable lets you choose which connection group to
Derek Jones37f4b9c2011-07-01 17:56:50 -050068| make active. By default there is only one group (the 'default' group).
Derek Allard2067d1a2008-11-13 22:59:24 +000069|
70| The $active_record variables lets you determine whether or not to load
71| the active record class
72*/
73
Derek Allardb76fedd2010-08-12 16:14:10 -040074$active_group = 'default';
Derek Allard2067d1a2008-11-13 22:59:24 +000075$active_record = TRUE;
76
Derek Allardb76fedd2010-08-12 16:14:10 -040077$db['default']['hostname'] = 'localhost';
78$db['default']['username'] = '';
79$db['default']['password'] = '';
80$db['default']['database'] = '';
81$db['default']['dbdriver'] = 'mysql';
82$db['default']['dbprefix'] = '';
Derek Allard2067d1a2008-11-13 22:59:24 +000083$db['default']['pconnect'] = TRUE;
84$db['default']['db_debug'] = TRUE;
85$db['default']['cache_on'] = FALSE;
Derek Allardb76fedd2010-08-12 16:14:10 -040086$db['default']['cachedir'] = '';
87$db['default']['char_set'] = 'utf8';
88$db['default']['dbcollat'] = 'utf8_general_ci';
89$db['default']['swap_pre'] = '';
Derek Jonesad1171a2010-03-10 14:18:38 -060090$db['default']['autoinit'] = TRUE;
Derek Jonesc34e5782010-03-02 17:35:55 -060091$db['default']['stricton'] = FALSE;
Felix Balfoort5d581b62011-11-29 15:53:01 +010092$db['default']['failover'] = array();
Derek Allard2067d1a2008-11-13 22:59:24 +000093
94/* End of file database.php */
Derek Jonesf0b39942010-03-25 10:08:20 -050095/* Location: ./application/config/database.php */