Codeigniter CLI Controller mishap Codeigniter CLI Controller mishap codeigniter codeigniter

Codeigniter CLI Controller mishap


Are you working from local?

If yes, try changing the hostname from

$db['default']['hostname'] = 'localhost';

to this:

$db['default']['hostname'] = '127.0.0.1';


It seems he can't connect to your database. Did you check your database settings in the database.php config file if it's correct?

If you are using multiple environments, check the part where you set your environment. Maybe he picks the wrong one.

You can also enable logs in the config.php file and check those.