Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in /home/tabtabta/class/common/Database.php on line 13

Fatal error: Uncaught exception 'MysqlConnectionException' with message '2002: No such file or directory' in /home/tabtabta/class/common/Database.php:17 Stack trace: #0 /home/tabtabta/class/common/Database.php(28): Database->__construct() #1 /home/tabtabta/class/common/Entity.php(48): Database::getInstance() #2 /home/tabtabta/class/User.php(55): Entity->__construct() #3 /home/tabtabta/class/middleware/AuthenticationMiddleware.php(17): User->__construct() #4 /home/tabtabta/class/middleware/AuthenticationMiddleware.php(7): AuthenticationMiddleware->authenticate(Object(Request)) #5 [internal function]: AuthenticationMiddleware->process_request(Object(Request)) #6 /home/tabtabta/class/common/FrontController.php(62): call_user_func_array(Array, Array) #7 /home/tabtabta/class/common/FrontController.php(18): FrontController->runRequestMiddleware(Object(Request)) #8 /home/tabtabta/html/index.php(20): FrontController->dispatch() #9 {main} thrown in /home/tabtabta/class/common/Database.php on line 17