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)
- in Connection.php line 770
- at Connection->runQueryCallback('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 726
- at Connection->run('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 351
- at Connection->select('select * from `categorias` order by `categoria` asc', array(), true) in Builder.php line 1648
- at Builder->runSelect() in Builder.php line 1634
- at Builder->get(array('*')) in Builder.php line 638
- at Builder->getModels(array('*')) in Builder.php line 327
- at Builder->get() in ViewServiceProvider.php line 18
- at ViewServiceProvider->boot()
- at call_user_func_array(array(object(ViewServiceProvider), 'boot'), array()) in Container.php line 508
- at Container->call(array(object(ViewServiceProvider), 'boot')) in Application.php line 769
- at Application->bootProvider(object(ViewServiceProvider)) in Application.php line 752
- at Application->Illuminate\Foundation\{closure}(object(ViewServiceProvider), '15')
- 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
- at Application->boot() in BootProviders.php line 17
- at BootProviders->bootstrap(object(Application)) in Application.php line 203
- 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
- at Kernel->bootstrap() in Kernel.php line 145
- at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
- at Kernel->handle(object(Request)) in index.php line 53
1/2
PDOException in Connector.php line 119:
SQLSTATE[HY000] [2002] Connection refused
- in Connector.php line 119
- 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
- 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
- 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
- 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
- at ConnectionFactory->Illuminate\Database\Connectors\{closure}()
- at call_user_func(object(Closure)) in Connection.php line 965
- at Connection->getPdo() in Connection.php line 986
- at Connection->getReadPdo() in Connection.php line 423
- at Connection->getPdoForSelect(true) in Connection.php line 333
- at Connection->Illuminate\Database\{closure}(object(MySqlConnection), 'select * from `categorias` order by `categoria` asc', array()) in Connection.php line 763
- at Connection->runQueryCallback('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 726
- at Connection->run('select * from `categorias` order by `categoria` asc', array(), object(Closure)) in Connection.php line 351
- at Connection->select('select * from `categorias` order by `categoria` asc', array(), true) in Builder.php line 1648
- at Builder->runSelect() in Builder.php line 1634
- at Builder->get(array('*')) in Builder.php line 638
- at Builder->getModels(array('*')) in Builder.php line 327
- at Builder->get() in ViewServiceProvider.php line 18
- at ViewServiceProvider->boot()
- at call_user_func_array(array(object(ViewServiceProvider), 'boot'), array()) in Container.php line 508
- at Container->call(array(object(ViewServiceProvider), 'boot')) in Application.php line 769
- at Application->bootProvider(object(ViewServiceProvider)) in Application.php line 752
- at Application->Illuminate\Foundation\{closure}(object(ViewServiceProvider), '15')
- 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
- at Application->boot() in BootProviders.php line 17
- at BootProviders->bootstrap(object(Application)) in Application.php line 203
- 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
- at Kernel->bootstrap() in Kernel.php line 145
- at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
- at Kernel->handle(object(Request)) in index.php line 53