The code is connect but the database group is invalid i.e. the code doesnt connect with the database because the setting in database.php file is invalid. where do we look for the error and how to resolve this.
You have specified an invalid database connection group (db) in your config/database.php file.
This file show error but not specified to where is error
config/database.php code below:
$db['default'] = array(
'dsn' => 'pgsql:host=localhost;port=5432;dbname=success_story',
'hostname' => 'localhost',
'username' => 'puneetchhabra',
'password' => 'shambhu',
'database' => 'success_story',
'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
);
The database.php file code is show what seems to be the error.
browser has this error unable to connect.
Message: pg_connect(): Unable to connect to PostgreSQL server: missing "=" `after "localhost" in connection info string`
Be kind and suggest.
Thanks.
$active_group? in your database.php you should declare$active_group = 'default';$active_group = 'default';already coded$active_group = 'db';(according to your error message)'default'i write'db'. is that what you mean ?