Created
March 13, 2018 16:36
-
-
Save parzibyte/3a37a62c9f36d630a4a8420d8c249403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
$active_group = 'default'; | |
$query_builder = TRUE; | |
$db['default'] = array( | |
# Suponiendo que nuestra base de datos se llama base_de_datos | |
# y estamos conectando a localhost | |
'dsn' => 'mysql:host=localhost;dbname=base_de_datos', | |
'hostname' => 'localhost', | |
'username' => 'root', #El nombre de usuario | |
'password' => '123123123', #La contraseña del usuario de arriba | |
'database' => '', | |
'dbdriver' => 'pdo', #Justo aquí utilizamos PDO | |
'dbprefix' => '', | |
'pconnect' => FALSE, | |
'db_debug' => (ENVIRONMENT !== 'production'), | |
'cache_on' => FALSE, | |
'cachedir' => '', | |
'char_set' => 'utf8', | |
'dbcollat' => 'utf8_general_ci', | |
'swap_pre' => '', | |
'encrypt' => FALSE, | |
'compress' => FALSE, | |
'stricton' => FALSE, | |
'failover' => array(), | |
'save_queries' => TRUE | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment