Whoops, looks like something went wrong.

(2/2) QueryException

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `posts` where `status` = 3)

in Connection.php (line 647)
at Connection->runQueryCallback('select * from `posts` where `status` = ?', array(3), object(Closure))in Connection.php (line 607)
at Connection->run('select * from `posts` where `status` = ?', array(3), object(Closure))in Connection.php (line 326)
at Connection->select('select * from `posts` where `status` = ?', array(3), true)in Builder.php (line 1710)
at Builder->runSelect()in Builder.php (line 1695)
at Builder->get(array('*'))in Builder.php (line 462)
at Builder->getModels(array('*'))in Builder.php (line 446)
at Builder->get()in AppServiceProvider.php (line 39)
at AppServiceProvider->boot()
at call_user_func_array(array(object(AppServiceProvider), 'boot'), array())in BoundMethod.php (line 29)
at BoundMethod::Illuminate\Container\{closure}()in BoundMethod.php (line 87)
at BoundMethod::callBoundMethod(object(Application), array(object(AppServiceProvider), 'boot'), object(Closure))in BoundMethod.php (line 31)
at BoundMethod::call(object(Application), array(object(AppServiceProvider), 'boot'), array(), null)in Container.php (line 539)
at Container->call(array(object(AppServiceProvider), 'boot'))in Application.php (line 788)
at Application->bootProvider(object(AppServiceProvider))in Application.php (line 771)
at Application->Illuminate\Foundation\{closure}(object(AppServiceProvider), 14)
at array_walk(array(object(EventServiceProvider), object(LogServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FormRequestServiceProvider), object(FoundationServiceProvider), object(NotificationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider)), object(Closure))in Application.php (line 772)
at Application->boot()in BootProviders.php (line 17)
at BootProviders->bootstrap(object(Application))in Application.php (line 208)
at Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))in Kernel.php (line 162)
at Kernel->bootstrap()in Kernel.php (line 146)
at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php (line 116)
at Kernel->handle(object(Request))in index.php (line 59)

(1/2) PDOException

SQLSTATE[HY000] [2002] Connection refused

in Connector.php (line 68)
at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=bdinfo_new', 'bdinfo_aamra', 'f{l@ocx&C7N7', array(0, 2, 0, false, false))in Connector.php (line 68)
at Connector->createPdoConnection('mysql:host=127.0.0.1;port=3306;dbname=bdinfo_new', 'bdinfo_aamra', 'f{l@ocx&C7N7', array(0, 2, 0, false, false))in Connector.php (line 44)
at Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=bdinfo_new', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'bdinfo_new', 'username' => 'bdinfo_aamra', 'password' => 'f{l@ocx&C7N7', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'modes' => array('STRICT_TRANS_TABLES', 'NO_ZERO_IN_DATE', 'NO_ZERO_DATE', 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_ENGINE_SUBSTITUTION'), 'name' => 'mysql'), array(0, 2, 0, false, false))in MySqlConnector.php (line 24)
at MySqlConnector->connect(array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'bdinfo_new', 'username' => 'bdinfo_aamra', 'password' => 'f{l@ocx&C7N7', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'modes' => array('STRICT_TRANS_TABLES', 'NO_ZERO_IN_DATE', 'NO_ZERO_DATE', 'ERROR_FOR_DIVISION_BY_ZERO', 'NO_ENGINE_SUBSTITUTION'), 'name' => 'mysql'))in ConnectionFactory.php (line 183)
at ConnectionFactory->Illuminate\Database\Connectors\{closure}()
at call_user_func(object(Closure))in Connection.php (line 883)
at Connection->getPdo()in Connection.php (line 904)
at Connection->getReadPdo()in Connection.php (line 392)
at Connection->getPdoForSelect(true)in Connection.php (line 318)
at Connection->Illuminate\Database\{closure}('select * from `posts` where `status` = ?', array(3))in Connection.php (line 640)
at Connection->runQueryCallback('select * from `posts` where `status` = ?', array(3), object(Closure))in Connection.php (line 607)
at Connection->run('select * from `posts` where `status` = ?', array(3), object(Closure))in Connection.php (line 326)
at Connection->select('select * from `posts` where `status` = ?', array(3), true)in Builder.php (line 1710)
at Builder->runSelect()in Builder.php (line 1695)
at Builder->get(array('*'))in Builder.php (line 462)
at Builder->getModels(array('*'))in Builder.php (line 446)
at Builder->get()in AppServiceProvider.php (line 39)
at AppServiceProvider->boot()
at call_user_func_array(array(object(AppServiceProvider), 'boot'), array())in BoundMethod.php (line 29)
at BoundMethod::Illuminate\Container\{closure}()in BoundMethod.php (line 87)
at BoundMethod::callBoundMethod(object(Application), array(object(AppServiceProvider), 'boot'), object(Closure))in BoundMethod.php (line 31)
at BoundMethod::call(object(Application), array(object(AppServiceProvider), 'boot'), array(), null)in Container.php (line 539)
at Container->call(array(object(AppServiceProvider), 'boot'))in Application.php (line 788)
at Application->bootProvider(object(AppServiceProvider))in Application.php (line 771)
at Application->Illuminate\Foundation\{closure}(object(AppServiceProvider), 14)
at array_walk(array(object(EventServiceProvider), object(LogServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FormRequestServiceProvider), object(FoundationServiceProvider), object(NotificationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider)), object(Closure))in Application.php (line 772)
at Application->boot()in BootProviders.php (line 17)
at BootProviders->bootstrap(object(Application))in Application.php (line 208)
at Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))in Kernel.php (line 162)
at Kernel->bootstrap()in Kernel.php (line 146)
at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php (line 116)
at Kernel->handle(object(Request))in index.php (line 59)