Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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