Skip to content

Instantly share code, notes, and snippets.

@asbarron
Created July 25, 2012 16:36
Show Gist options
  • Save asbarron/3177121 to your computer and use it in GitHub Desktop.
Save asbarron/3177121 to your computer and use it in GitHub Desktop.
How to configure CodeIgniter 2.1.2 with SQLite3
/* SQLite3 config for PDO */
$db['default'] = array (
'dsn' => 'sqlite:'. FCPATH.'virtTour_original.sqlite', //Change this to the path of your db file
'hostname' => '',
'username' => '',
'password' => '',
'dbdriver' => 'pdo',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'autoinit' => TRUE,
'stricton' => FALSE,
'failover' => array()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment