Message: mysqli::real_connect(): (HY000/2002): No such file or directory

Good afternoon, guys! Here’s the thing, I have a project developed in CodeIgniter. When I try to access, this error is displayed in V4.

When I put another project without a database no problem is presented.

Could someone help me?

@kailtom007 Are you sure the credentials in config/database.php are correct? Also if you created a PHP site, did you pass --with-db flag?

ee site create example.com --type=php --with-db

Thank you Kirtan! I forgot to change in: Config/database. The following index ’ hostname ’ = > ’ localhost ’ for ’ hostname ’ = > ’ global-DB

Thanks!