Skip to content

Instantly share code, notes, and snippets.

@jlamim
Created April 15, 2016 23:46
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 jlamim/37383b71db46b9883128fd07b05468e8 to your computer and use it in GitHub Desktop.
Save jlamim/37383b71db46b9883128fd07b05468e8 to your computer and use it in GitHub Desktop.
Configuração do banco de dados - Criando um CRUD com CodeIgniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'host',
'username' => 'usuario',
'password' => 'senha',
'database' => 'nome_banco',
'dbdriver' => 'mysqli',
'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