Critical Error

SQLSTATE[HY000] [2002] Connection refused

PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/members/vendor/illuminate/database/Connectors/Connector.php:55
Stack trace:
#0 /var/www/html/members/vendor/illuminate/database/Connectors/Connector.php(55): PDO->__construct()
#1 /var/www/html/members/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#2 /var/www/html/members/vendor/illuminate/database/Connectors/ConnectionFactory.php(61): Illuminate\Database\Connectors\MySqlConnector->connect()
#3 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#4 /var/www/html/members/vendor/illuminate/database/Connection.php(908): call_user_func()
#5 /var/www/html/members/vendor/illuminate/database/DatabaseManager.php(146): Illuminate\Database\Connection->getPdo()
#6 /var/www/html/members/vendor/illuminate/database/DatabaseManager.php(132): Illuminate\Database\DatabaseManager->refreshPdoConnections()
#7 /var/www/html/members/vendor/illuminate/database/DatabaseManager.php(197): Illuminate\Database\DatabaseManager->reconnect()
#8 [internal function]: Illuminate\Database\DatabaseManager->Illuminate\Database\{closure}()
#9 /var/www/html/members/vendor/illuminate/database/Connection.php(763): call_user_func()
#10 /var/www/html/members/vendor/illuminate/database/Connection.php(735): Illuminate\Database\Connection->reconnect()
#11 /var/www/html/members/vendor/illuminate/database/Connection.php(676): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection()
#12 /var/www/html/members/vendor/illuminate/database/Connection.php(342): Illuminate\Database\Connection->run()
#13 /var/www/html/members/vendor/illuminate/database/Query/Builder.php(1583): Illuminate\Database\Connection->select()
#14 /var/www/html/members/vendor/illuminate/database/Query/Builder.php(1569): Illuminate\Database\Query\Builder->runSelect()
#15 /var/www/html/members/vendor/illuminate/database/Eloquent/Builder.php(624): Illuminate\Database\Query\Builder->get()
#16 /var/www/html/members/vendor/illuminate/database/Eloquent/Builder.php(316): Illuminate\Database\Eloquent\Builder->getModels()
#17 /var/www/html/members/vendor/illuminate/database/Eloquent/Builder.php(286): Illuminate\Database\Eloquent\Builder->get()
#18 /var/www/html/members/vendor/illuminate/database/Eloquent/Builder.php(167): Illuminate\Database\Eloquent\Builder->first()
#19 [internal function]: Illuminate\Database\Eloquent\Builder->find()
#20 /var/www/html/members/vendor/illuminate/database/Eloquent/Model.php(3494): call_user_func_array()
#21 [internal function]: Illuminate\Database\Eloquent\Model->__call()
#22 /var/www/html/members/vendor/illuminate/database/Eloquent/Model.php(3508): call_user_func_array()
#23 /var/www/html/members/vendor/whmcs/whmcs-foundation/lib/Config/Setting.php(0): Illuminate\Database\Eloquent\Model::__callStatic()
#24 /var/www/html/members/vendor/whmcs/whmcs-foundation/lib/Init.php(0): WHMCS\Config\Setting::getValue()
#25 /var/www/html/members/vendor/whmcs/whmcs-foundation/lib/Http/Request.php(0): WHMCS\Init->get_config()
#26 /var/www/html/members/vendor/whmcs/whmcs-foundation/lib/Application.php(0): WHMCS\Http\Request::defineProxyTrustFromApplication()
#27 /var/www/html/members/vendor/whmcs/whmcs-foundation/lib/Application/ApplicationServiceProvider.php(0): WHMCS\Application->__construct()
#28 /var/www/html/members/vendor/illuminate/container/Container.php(731): WHMCS\Application\ApplicationServiceProvider->WHMCS\Application\{closure}()
#29 /var/www/html/members/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->build()
#30 /var/www/html/members/vendor/illuminate/container/Container.php(1174): Illuminate\Container\Container->make()
#31 /var/www/html/members/vendor/illuminate/support/Facades/Facade.php(151): Illuminate\Container\Container->offsetGet()
#32 /var/www/html/members/vendor/illuminate/support/Facades/Facade.php(120): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#33 /var/www/html/members/vendor/whmcs/whmcs-foundation/lib/Application/Support/Facades/Facade.php(0): Illuminate\Support\Facades\Facade::getFacadeRoot()
#34 /var/www/html/members/init.php(0): WHMCS\Application\Support\Facades\Facade::self()
#35 /var/www/html/members/index.php(0): unknown()
#36 {main}