Slim Application Error

The application could not run because of the following error:

Details

Type: PDOException
Code: 2002
Message: SQLSTATE[HY000] [2002] Connection refused
File: /var/www/html/gifbin.com/app/src/Model/Model.php
Line: 29

Trace

#0 /var/www/html/gifbin.com/app/src/Model/Model.php(29): PDO->__construct()
#1 /var/www/html/gifbin.com/app/dependencies.php(30): App\Model\Model->__construct()
#2 /var/www/html/gifbin.com/vendor/pimple/pimple/src/Pimple/Container.php(122): {closure}()
#3 /var/www/html/gifbin.com/vendor/slim/slim/Slim/Container.php(238): Pimple\Container->offsetGet()
#4 /var/www/html/gifbin.com/vendor/slim/slim/Slim/App.php(121): Slim\Container->get()
#5 /var/www/html/gifbin.com/app/routes.php(162): Slim\App->__get()
#6 /var/www/html/gifbin.com/vendor/slim/slim/Slim/Route.php(246): Closure->{closure}()
#7 /var/www/html/gifbin.com/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(112): Slim\Route->__invoke()
#8 /var/www/html/gifbin.com/vendor/slim/slim/Slim/Route.php(221): Slim\Route->callMiddlewareStack()
#9 /var/www/html/gifbin.com/vendor/slim/slim/Slim/App.php(378): Slim\Route->run()
#10 /var/www/html/gifbin.com/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(112): Slim\App->__invoke()
#11 /var/www/html/gifbin.com/vendor/slim/slim/Slim/App.php(342): Slim\App->callMiddlewareStack()
#12 /var/www/html/gifbin.com/public/index.php(24): Slim\App->run()
#13 {main}