Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: PDOException
Code: 2002
Message: SQLSTATE[HY000] [2002] No such file or directory
File: /home/iung/public_html/src/core/Database.php
Line: 14

Trace

#0 /home/iung/public_html/src/core/Database.php(14): PDO->__construct('mysql:host=loca...', 'iung_site', 'mdNf._-0b(}=')
#1 /home/iung/public_html/src/core/Bootstrap.php(29): Core\Database->__construct()
#2 /home/iung/public_html/src/core/Bootstrap.php(14): Core\Bootstrap->getHeaderParams()
#3 /home/iung/public_html/vendor/slim/slim/Slim/CallableResolver.php(93): Core\Bootstrap->__construct(Object(Slim\Container))
#4 /home/iung/public_html/vendor/slim/slim/Slim/CallableResolver.php(67): Slim\CallableResolver->resolveCallable('Controller\\Home')
#5 /home/iung/public_html/vendor/slim/slim/Slim/CallableResolverAwareTrait.php(45): Slim\CallableResolver->resolve('Controller\\Home')
#6 /home/iung/public_html/vendor/slim/slim/Slim/Route.php(351): Slim\Routable->resolveCallable('Controller\\Home')
#7 /home/iung/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /home/iung/public_html/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /home/iung/public_html/vendor/slim/slim/Slim/App.php(515): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 /home/iung/public_html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 /home/iung/public_html/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#12 /home/iung/public_html/vendor/slim/slim/Slim/App.php(314): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#13 /home/iung/public_html/index.php(64): Slim\App->run()
#14 {main}