database.php

Go to the documentation of this file.
00001 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
00002 /*
00003 | -------------------------------------------------------------------
00004 | DATABASE CONNECTIVITY SETTINGS
00005 | -------------------------------------------------------------------
00006 | This file will contain the settings needed to access your database.
00007 |
00008 | For complete instructions please consult the "Database Connection"
00009 | page of the User Guide.
00010 |
00011 | -------------------------------------------------------------------
00012 | EXPLANATION OF VARIABLES
00013 | -------------------------------------------------------------------
00014 |
00015 |       ['hostname'] The hostname of your database server.
00016 |       ['username'] The username used to connect to the database
00017 |       ['password'] The password used to connect to the database
00018 |       ['database'] The name of the database you want to connect to
00019 |       ['dbdriver'] The database type. ie: mysql.  Currently supported:
00020                                  mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
00021 |       ['dbprefix'] You can add an optional prefix, which will be added
00022 |                                to the table name when using the  Active Record class
00023 |       ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
00024 |       ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
00025 |       ['cache_on'] TRUE/FALSE - Enables/disables query caching
00026 |       ['cachedir'] The path to the folder where cache files should be stored
00027 |       ['char_set'] The character set used in communicating with the database
00028 |       ['dbcollat'] The character collation used in communicating with the database
00029 |
00030 | The $active_group variable lets you choose which connection group to
00031 | make active.  By default there is only one group (the "default" group).
00032 |
00033 | The $active_record variables lets you determine whether or not to load
00034 | the active record class
00035 */
00036 
00037 $active_group = "default";
00038 $active_record = TRUE;
00039 
00040 $db['default']['hostname'] = "localhost";
00041 $db['default']['username'] = "";
00042 $db['default']['password'] = "";
00043 $db['default']['database'] = "";
00044 $db['default']['dbdriver'] = "mysql";
00045 $db['default']['dbprefix'] = "";
00046 $db['default']['pconnect'] = TRUE;
00047 $db['default']['db_debug'] = TRUE;
00048 $db['default']['cache_on'] = FALSE;
00049 $db['default']['cachedir'] = "";
00050 $db['default']['char_set'] = "utf8";
00051 $db['default']['dbcollat'] = "utf8_general_ci";
00052 
00053 
00054 /* End of file database.php */
00055 /* Location: ./system/application/config/database.php */