PDOException: SQLSTATE[HY000] [2002] Connection refused in /home/thuoctamgroup/vendor/illuminate/database/Connectors/Connector.php:68 Stack trace: #0 /home/thuoctamgroup/vendor/illuminate/database/Connectors/Connector.php(68): PDO->__construct('mysql:host=loca...', 'thuoctamgroup_u...', '1Gepqh7U[[KP', Array) #1 /home/thuoctamgroup/vendor/illuminate/database/Connectors/Connector.php(44): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=loca...', 'thuoctamgroup_u...', '1Gepqh7U[[KP', Array) #2 /home/thuoctamgroup/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array) #3 /home/thuoctamgroup/vendor/illuminate/database/Connectors/ConnectionFactory.php(182): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #5 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(915): call_user_func(Object(Closure)) #6 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(940): Illuminate\Database\Connection->getPdo() #7 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(399): Illuminate\Database\Connection->getReadPdo() #8 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(325): Illuminate\Database\Connection->getPdoForSelect(true) #9 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(657): Illuminate\Database\Connection->Illuminate\Database\{closure}('select * from `...', Array) #10 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback('select * from `...', Array, Object(Closure)) #11 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(333): Illuminate\Database\Connection->run('select * from `...', Array, Object(Closure)) #12 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(1963): Illuminate\Database\Connection->select('select * from `...', Array, true) #13 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(1951): Illuminate\Database\Query\Builder->runSelect() #14 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(2435): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}() #15 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(1952): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure)) #16 /home/thuoctamgroup/vendor/illuminate/database/Eloquent/Builder.php(481): Illuminate\Database\Query\Builder->get(Array) #17 /home/thuoctamgroup/vendor/illuminate/database/Eloquent/Builder.php(465): Illuminate\Database\Eloquent\Builder->getModels(Array) #18 /home/thuoctamgroup/framework/pug-helper.php(815): Illuminate\Database\Eloquent\Builder->get() #19 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(39): Client() #20 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_8ad906275a4a2f22ce5d84d2f62b3fb12a8dc9e6fba3a79f3aca8eb7f3d26257->doDisplay(Array, Array) #21 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #22 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(138): Twig_Template->display(Array) #23 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_fe7ae6bbb2ca76d8f57e84480ecaabd14e5040aca76673717feed28e671d442b->doDisplay(Array, Array) #24 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #25 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(29): Twig_Template->display(Array, Array) #26 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_624809714bf0a81146665e059669f8df1386ddd8e9f90345dbd32f819aad0455->doDisplay(Array, Array) #27 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #28 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(375): Twig_Template->display(Array) #29 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array) #30 /home/thuoctamgroup/vendor/slim/twig-view/src/Twig.php(88): Twig_Environment->render('index.twig', Array) #31 /home/thuoctamgroup/vendor/slim/twig-view/src/Twig.php(132): Slim\Views\Twig->fetch('index.twig', Array) #32 /home/thuoctamgroup/framework/view.php(77): Slim\Views\Twig->render(Object(Slim\Http\Response), 'index.twig', Array) #33 /home/thuoctamgroup/controllers/IndexController.php(13): View->render(Object(Slim\Http\Response), 'index') #34 [internal function]: IndexController->index(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #35 /home/thuoctamgroup/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #36 /home/thuoctamgroup/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #37 /home/thuoctamgroup/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #38 /home/thuoctamgroup/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #39 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(513): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #40 /home/thuoctamgroup/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #41 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #42 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(314): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #43 /home/thuoctamgroup/public/index.php(85): Slim\App->run() #44 {main} Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `client` where `status` = active order by `updated_at` desc) in /home/thuoctamgroup/vendor/illuminate/database/Connection.php:664 Stack trace: #0 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback('select * from `...', Array, Object(Closure)) #1 /home/thuoctamgroup/vendor/illuminate/database/Connection.php(333): Illuminate\Database\Connection->run('select * from `...', Array, Object(Closure)) #2 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(1963): Illuminate\Database\Connection->select('select * from `...', Array, true) #3 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(1951): Illuminate\Database\Query\Builder->runSelect() #4 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(2435): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}() #5 /home/thuoctamgroup/vendor/illuminate/database/Query/Builder.php(1952): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure)) #6 /home/thuoctamgroup/vendor/illuminate/database/Eloquent/Builder.php(481): Illuminate\Database\Query\Builder->get(Array) #7 /home/thuoctamgroup/vendor/illuminate/database/Eloquent/Builder.php(465): Illuminate\Database\Eloquent\Builder->getModels(Array) #8 /home/thuoctamgroup/framework/pug-helper.php(815): Illuminate\Database\Eloquent\Builder->get() #9 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(39): Client() #10 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_8ad906275a4a2f22ce5d84d2f62b3fb12a8dc9e6fba3a79f3aca8eb7f3d26257->doDisplay(Array, Array) #11 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #12 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(138): Twig_Template->display(Array) #13 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_fe7ae6bbb2ca76d8f57e84480ecaabd14e5040aca76673717feed28e671d442b->doDisplay(Array, Array) #14 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #15 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(29): Twig_Template->display(Array, Array) #16 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_624809714bf0a81146665e059669f8df1386ddd8e9f90345dbd32f819aad0455->doDisplay(Array, Array) #17 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #18 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(375): Twig_Template->display(Array) #19 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array) #20 /home/thuoctamgroup/vendor/slim/twig-view/src/Twig.php(88): Twig_Environment->render('index.twig', Array) #21 /home/thuoctamgroup/vendor/slim/twig-view/src/Twig.php(132): Slim\Views\Twig->fetch('index.twig', Array) #22 /home/thuoctamgroup/framework/view.php(77): Slim\Views\Twig->render(Object(Slim\Http\Response), 'index.twig', Array) #23 /home/thuoctamgroup/controllers/IndexController.php(13): View->render(Object(Slim\Http\Response), 'index') #24 [internal function]: IndexController->index(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #25 /home/thuoctamgroup/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #26 /home/thuoctamgroup/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #27 /home/thuoctamgroup/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #28 /home/thuoctamgroup/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #29 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(513): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #30 /home/thuoctamgroup/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #31 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #32 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(314): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #33 /home/thuoctamgroup/public/index.php(85): Slim\App->run() #34 {main} Next Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `client` where `status` = active order by `updated_at` desc)"). in /home/thuoctamgroup/public/themes/thuoctam/views/snippet/header.twig:11 Stack trace: #0 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #1 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(138): Twig_Template->display(Array) #2 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_fe7ae6bbb2ca76d8f57e84480ecaabd14e5040aca76673717feed28e671d442b->doDisplay(Array, Array) #3 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #4 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(378) : eval()'d code(29): Twig_Template->display(Array, Array) #5 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(390): __TwigTemplate_624809714bf0a81146665e059669f8df1386ddd8e9f90345dbd32f819aad0455->doDisplay(Array, Array) #6 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(367): Twig_Template->displayWithErrorHandling(Array, Array) #7 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Template.php(375): Twig_Template->display(Array) #8 /home/thuoctamgroup/vendor/twig/twig/lib/Twig/Environment.php(289): Twig_Template->render(Array) #9 /home/thuoctamgroup/vendor/slim/twig-view/src/Twig.php(88): Twig_Environment->render('index.twig', Array) #10 /home/thuoctamgroup/vendor/slim/twig-view/src/Twig.php(132): Slim\Views\Twig->fetch('index.twig', Array) #11 /home/thuoctamgroup/framework/view.php(77): Slim\Views\Twig->render(Object(Slim\Http\Response), 'index.twig', Array) #12 /home/thuoctamgroup/controllers/IndexController.php(13): View->render(Object(Slim\Http\Response), 'index') #13 [internal function]: IndexController->index(Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #14 /home/thuoctamgroup/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #15 /home/thuoctamgroup/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array) #16 /home/thuoctamgroup/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #17 /home/thuoctamgroup/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #18 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(513): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response)) #19 /home/thuoctamgroup/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response)) #20 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #21 /home/thuoctamgroup/vendor/slim/slim/Slim/App.php(314): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #22 /home/thuoctamgroup/public/index.php(85): Slim\App->run() #23 {main}