blob: 7fb19c344dc65095524a54fe45f623e2facb1c68 [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
Phil Sturgeon07c1ac82012-03-09 17:03:37 +00005 * An open source application development framework for PHP 5.2.4 or newer
Derek Jonesf4a4bd82011-10-20 12:18:42 -05006 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +02007 * This content is released under the MIT License (MIT)
Andrey Andreeve734b382012-03-26 13:42:36 +03008 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +02009 * Copyright (c) 2014, British Columbia Institute of Technology
Andrey Andreeve734b382012-03-26 13:42:36 +030010 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020011 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
Derek Jonesf4a4bd82011-10-20 12:18:42 -050017 *
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020018 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 * THE SOFTWARE.
28 *
29 * @package CodeIgniter
30 * @author EllisLab Dev Team
darwinel871754a2014-02-11 17:34:57 +010031 * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
Andrey Andreevbdb96ca2014-10-28 00:13:31 +020032 * @copyright Copyright (c) 2014, British Columbia Institute of Technology (http://bcit.ca/)
33 * @license http://opensource.org/licenses/MIT MIT License
34 * @link http://codeigniter.com
35 * @since Version 1.0.0
Derek Jonesf4a4bd82011-10-20 12:18:42 -050036 * @filesource
37 */
darwineld8bef8a2014-02-11 20:13:22 +010038defined('BASEPATH') OR exit('No direct script access allowed');
39
Derek Allard2067d1a2008-11-13 22:59:24 +000040/*
41| -------------------------------------------------------------------
42| DATABASE CONNECTIVITY SETTINGS
43| -------------------------------------------------------------------
44| This file will contain the settings needed to access your database.
45|
Derek Allardb76fedd2010-08-12 16:14:10 -040046| For complete instructions please consult the 'Database Connection'
Derek Allard2067d1a2008-11-13 22:59:24 +000047| page of the User Guide.
48|
49| -------------------------------------------------------------------
50| EXPLANATION OF VARIABLES
51| -------------------------------------------------------------------
52|
Taufan Aditya0142f702012-02-09 16:10:49 +070053| ['dsn'] The full DSN string describe a connection to the database.
Derek Allard2067d1a2008-11-13 22:59:24 +000054| ['hostname'] The hostname of your database server.
55| ['username'] The username used to connect to the database
56| ['password'] The password used to connect to the database
57| ['database'] The name of the database you want to connect to
Andrey Andreev26086872012-07-05 11:21:58 +030058| ['dbdriver'] The database driver. e.g.: mysqli.
Andrey Andreev2f8bf9b2012-10-12 20:37:52 +030059| Currently supported:
Andrey Andreev26086872012-07-05 11:21:58 +030060| cubrid, ibase, mssql, mysql, mysqli, oci8,
Timothy Warren43481d02012-04-17 09:17:40 -040061| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
Derek Allard2067d1a2008-11-13 22:59:24 +000062| ['dbprefix'] You can add an optional prefix, which will be added
Jamie Rumbelow7efad202012-02-19 12:37:00 +000063| to the table name when using the Query Builder class
Derek Allard2067d1a2008-11-13 22:59:24 +000064| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
65| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
66| ['cache_on'] TRUE/FALSE - Enables/disables query caching
67| ['cachedir'] The path to the folder where cache files should be stored
68| ['char_set'] The character set used in communicating with the database
69| ['dbcollat'] The character collation used in communicating with the database
Derek Jones6ae70cc2011-04-19 16:13:48 -050070| NOTE: For MySQL and MySQLi databases, this setting is only used
Derek Jones3b9f88d2011-05-20 10:25:13 -050071| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
72| (and in table creation queries made with DB Forge).
Derek Jones6ae70cc2011-04-19 16:13:48 -050073| There is an incompatibility in PHP with mysql_real_escape_string() which
74| can make your site vulnerable to SQL injection if you are using a
75| multi-byte character set and are running versions lower than these.
76| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
Derek Jonesad1171a2010-03-10 14:18:38 -060077| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
78| ['autoinit'] Whether or not to automatically initialize the database.
Andrey Andreev2f8bf9b2012-10-12 20:37:52 +030079| ['encrypt'] Whether or not to use an encrypted connection.
80| ['compress'] Whether or not to use client compression (MySQL only)
Derek Allardb76fedd2010-08-12 16:14:10 -040081| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
Derek Jonesc34e5782010-03-02 17:35:55 -060082| - good for ensuring strict SQL while developing
Felix Balfoort5d581b62011-11-29 15:53:01 +010083| ['failover'] array - A array with 0 or more data for connections if the main should fail.
Andrey Andreev1c8245a2014-01-20 10:28:20 +020084| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
85| NOTE: Disabling this will also effectively disable both
86| $this->db->last_query() and profiling of DB queries.
87| When you run a query, with this setting set to TRUE (default),
88| CodeIgniter will store the SQL statement for debugging purposes.
89| However, this may cause high memory usage, especially if you run
90| a lot of SQL queries ... disable this to avoid that problem.
Derek Allard2067d1a2008-11-13 22:59:24 +000091|
92| The $active_group variable lets you choose which connection group to
Derek Jones37f4b9c2011-07-01 17:56:50 -050093| make active. By default there is only one group (the 'default' group).
Derek Allard2067d1a2008-11-13 22:59:24 +000094|
Jamie Rumbelow7efad202012-02-19 12:37:00 +000095| The $query_builder variables lets you determine whether or not to load
Andrey Andreev2f8bf9b2012-10-12 20:37:52 +030096| the query builder class.
Derek Allard2067d1a2008-11-13 22:59:24 +000097*/
98
Derek Allardb76fedd2010-08-12 16:14:10 -040099$active_group = 'default';
Jamie Rumbelow7efad202012-02-19 12:37:00 +0000100$query_builder = TRUE;
Derek Allard2067d1a2008-11-13 22:59:24 +0000101
Timothy Warrend294a582012-04-04 13:28:39 -0400102$db['default'] = array(
103 'dsn' => '',
104 'hostname' => 'localhost',
105 'username' => '',
106 'password' => '',
107 'database' => '',
108 'dbdriver' => 'mysqli',
109 'dbprefix' => '',
Andrey Andreevde6eff02012-06-26 18:13:13 +0300110 'pconnect' => TRUE,
Timothy Warrend294a582012-04-04 13:28:39 -0400111 'db_debug' => TRUE,
112 'cache_on' => FALSE,
113 'cachedir' => '',
114 'char_set' => 'utf8',
115 'dbcollat' => 'utf8_general_ci',
116 'swap_pre' => '',
117 'autoinit' => TRUE,
Andrey Andreev2f8bf9b2012-10-12 20:37:52 +0300118 'encrypt' => FALSE,
119 'compress' => FALSE,
Timothy Warrend294a582012-04-04 13:28:39 -0400120 'stricton' => FALSE,
Andrey Andreev1c8245a2014-01-20 10:28:20 +0200121 'failover' => array(),
122 'save_queries' => TRUE
Timothy Warrend294a582012-04-04 13:28:39 -0400123);
Derek Allard2067d1a2008-11-13 22:59:24 +0000124
125/* End of file database.php */
Derek Jonesf0b39942010-03-25 10:08:20 -0500126/* Location: ./application/config/database.php */