Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 13, 2018 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/3a37a62c9f36d630a4a8420d8c249403 to your computer and use it in GitHub Desktop.
Save parzibyte/3a37a62c9f36d630a4a8420d8c249403 to your computer and use it in GitHub Desktop.
<?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