Frequently Asked Question

How to use MySQL to store DbFace configurations?
Last Updated 7 years ago

As default, DbFace stores all configuration data (application settings) in config/dbface.db. You can also make DbFace to store them into MySQL database to gain more stable performance.

1. Delete config/.install file
2. Create database dbface on your MySQL
3. Create database.php file and replace it application/config/database.php

$active_group = 'default';

$query_builder = TRUE;

$db['default'] = array(
'dsn' => '',
'hostname'=> '',
'username'=> 'mysql-username',
'password'=> 'mysql-password',
'database'=> 'dbface',
'dbdriver' => 'mysqli',
'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()

Please Wait!

Please wait... it will take a second!