Skip to content

database.php file does not appear to contain a valid configuration array #1

@asaadhoussam

Description

@asaadhoussam

The great features of the application, especially work with the ldap

It was assumed that the application of portable,
I work on the Windows platform, codeigniter 3.1.3, i have all the settings in a config file and in database file with suspicion is true
When do I turn the application on localhost server, shows me the following message:

An Error Was Encountered
Your C:\xampp\htdocs\skeleton\application\config/database.php file does not appear to contain a valid configuration array.
database.php contain:

$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'skeleton',
'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
);
Is there more to work correctly?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions