Whoops, looks like something went wrong.

2/2 QueryException in Connection.php line 770: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `categorias` order by `categoria` asc)

  1. in Connection.php line 770
  2. at Connection->runQueryCallback('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 726
  3. at Connection->run('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 351
  4. at Connection->select('select * from `categorias` order by `categoria` asc', array(), true) in Builder.php line 1648
  5. at Builder->runSelect() in Builder.php line 1634
  6. at Builder->get(array('*')) in Builder.php line 638
  7. at Builder->getModels(array('*')) in Builder.php line 327
  8. at Builder->get() in ViewServiceProvider.php line 18
  9. at ViewServiceProvider->boot()
  10. at call_user_func_array(array(object(ViewServiceProvider), 'boot'), array()) in Container.php line 508
  11. at Container->call(array(object(ViewServiceProvider), 'boot')) in Application.php line 769
  12. at Application->bootProvider(object(ViewServiceProvider)) in Application.php line 752
  13. at Application->Illuminate\Foundation\{closure}(object(ViewServiceProvider), '15')
  14. at array_walk(array(object(EventServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FoundationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(ViewServiceProvider), object(EntrustServiceProvider), object(ImageServiceProvider), object(ExcelServiceProvider), object(ServiceProvider), object(ServiceProvider), object(LaravelFilemanagerServiceProvider), object(AgentServiceProvider), object(ServiceProvider), object(ServiceProvider), object(SitemapServiceProvider)), object(Closure)) in Application.php line 753
  15. at Application->boot() in BootProviders.php line 17
  16. at BootProviders->bootstrap(object(Application)) in Application.php line 203
  17. at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 254
  18. at Kernel->bootstrap() in Kernel.php line 145
  19. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
  20. at Kernel->handle(object(Request)) in index.php line 53

1/2 PDOException in Connector.php line 119: SQLSTATE[HY000] [2002] Connection refused

  1. in Connector.php line 119
  2. at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=promocon', 'root', 'promoconbygenezzi2016', array('0', '2', '0', false, false)) in Connector.php line 119
  3. at Connector->createPdoConnection('mysql:host=127.0.0.1;port=3306;dbname=promocon', 'root', 'promoconbygenezzi2016', array('0', '2', '0', false, false)) in Connector.php line 56
  4. at Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=promocon', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'promocon', 'username' => 'root', 'password' => 'promoconbygenezzi2016', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'name' => 'mysql'), array('0', '2', '0', false, false)) in MySqlConnector.php line 24
  5. at MySqlConnector->connect(array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'promocon', 'username' => 'root', 'password' => 'promoconbygenezzi2016', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'name' => 'mysql')) in ConnectionFactory.php line 126
  6. at ConnectionFactory->Illuminate\Database\Connectors\{closure}()
  7. at call_user_func(object(Closure)) in Connection.php line 965
  8. at Connection->getPdo() in Connection.php line 986
  9. at Connection->getReadPdo() in Connection.php line 423
  10. at Connection->getPdoForSelect(true) in Connection.php line 333
  11. at Connection->Illuminate\Database\{closure}(object(MySqlConnection), 'select * from `categorias` order by `categoria` asc', array()) in Connection.php line 763
  12. at Connection->runQueryCallback('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 726
  13. at Connection->run('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 351
  14. at Connection->select('select * from `categorias` order by `categoria` asc', array(), true) in Builder.php line 1648
  15. at Builder->runSelect() in Builder.php line 1634
  16. at Builder->get(array('*')) in Builder.php line 638
  17. at Builder->getModels(array('*')) in Builder.php line 327
  18. at Builder->get() in ViewServiceProvider.php line 18
  19. at ViewServiceProvider->boot()
  20. at call_user_func_array(array(object(ViewServiceProvider), 'boot'), array()) in Container.php line 508
  21. at Container->call(array(object(ViewServiceProvider), 'boot')) in Application.php line 769
  22. at Application->bootProvider(object(ViewServiceProvider)) in Application.php line 752
  23. at Application->Illuminate\Foundation\{closure}(object(ViewServiceProvider), '15')
  24. at array_walk(array(object(EventServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FoundationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(ViewServiceProvider), object(EntrustServiceProvider), object(ImageServiceProvider), object(ExcelServiceProvider), object(ServiceProvider), object(ServiceProvider), object(LaravelFilemanagerServiceProvider), object(AgentServiceProvider), object(ServiceProvider), object(ServiceProvider), object(SitemapServiceProvider)), object(Closure)) in Application.php line 753
  25. at Application->boot() in BootProviders.php line 17
  26. at BootProviders->bootstrap(object(Application)) in Application.php line 203
  27. at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 254
  28. at Kernel->bootstrap() in Kernel.php line 145
  29. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
  30. at Kernel->handle(object(Request)) in index.php line 53