PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 Stack trace: #0 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(70): PDO->__construct() #1 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection() #2 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection() #3 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection() #4 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect() #5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() #6 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(939): call_user_func() #7 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(974): Illuminate\Database\Connection->getPdo() #8 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(412): Illuminate\Database\Connection->getReadPdo() #9 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(338): Illuminate\Database\Connection->getPdoForSelect() #10 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(671): Illuminate\Database\Connection->Illuminate\Database\{closure}() #11 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(752): Illuminate\Database\Connection->runQueryCallback() #12 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(732): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #13 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(641): Illuminate\Database\Connection->handleQueryException() #14 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(346): Illuminate\Database\Connection->run() #15 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2313): Illuminate\Database\Connection->select() #16 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2301): Illuminate\Database\Query\Builder->runSelect() #17 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2796): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}() #18 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2302): Illuminate\Database\Query\Builder->onceWithColumns() #19 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(588): Illuminate\Database\Query\Builder->get() #20 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(572): Illuminate\Database\Eloquent\Builder->getModels() #21 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(477): Illuminate\Database\Eloquent\Builder->get() #22 /var/www/vhosts/i-longju.com/httpdocs/app/Providers/AppServiceProvider.php(39): Illuminate\Database\Eloquent\Model::all() #23 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Providers\AppServiceProvider->boot() #24 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #25 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #26 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod() #27 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\Container\BoundMethod::call() #28 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(914): Illuminate\Container\Container->call() #29 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(895): Illuminate\Foundation\Application->bootProvider() #30 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() #31 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(896): array_walk() #32 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot() #33 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap() #34 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(152): Illuminate\Foundation\Application->bootstrapWith() #35 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(136): Illuminate\Foundation\Http\Kernel->bootstrap() #36 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #37 /var/www/vhosts/i-longju.com/httpdocs/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle() #38 {main} Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `site`.`settings`) in /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php:678 Stack trace: #0 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(752): Illuminate\Database\Connection->runQueryCallback() #1 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(732): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection() #2 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(641): Illuminate\Database\Connection->handleQueryException() #3 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(346): Illuminate\Database\Connection->run() #4 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2313): Illuminate\Database\Connection->select() #5 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2301): Illuminate\Database\Query\Builder->runSelect() #6 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2796): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}() #7 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2302): Illuminate\Database\Query\Builder->onceWithColumns() #8 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(588): Illuminate\Database\Query\Builder->get() #9 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(572): Illuminate\Database\Eloquent\Builder->getModels() #10 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(477): Illuminate\Database\Eloquent\Builder->get() #11 /var/www/vhosts/i-longju.com/httpdocs/app/Providers/AppServiceProvider.php(39): Illuminate\Database\Eloquent\Model::all() #12 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Providers\AppServiceProvider->boot() #13 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() #14 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure() #15 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod() #16 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\Container\BoundMethod::call() #17 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(914): Illuminate\Container\Container->call() #18 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(895): Illuminate\Foundation\Application->bootProvider() #19 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() #20 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(896): array_walk() #21 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot() #22 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap() #23 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(152): Illuminate\Foundation\Application->bootstrapWith() #24 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(136): Illuminate\Foundation\Http\Kernel->bootstrap() #25 /var/www/vhosts/i-longju.com/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #26 /var/www/vhosts/i-longju.com/httpdocs/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle() #27 {main}