Error connecting to database - check your database connection properties in constants.php file

SQLSTATE[HY000] [2002] No such file or directory
PHP Version : 5.6.40

Catchable fatal error: Argument 1 passed to Configs::__construct() must be an instance of PDO, null given, called in /home/talentac/public_html/admin/includes/front_controller.php on line 22 and defined in /home/talentac/public_html/admin/includes/Configs.php on line 10