Slim Application Error


#1

please help i got an error

# Slim Application Error

The application could not run because of the following error:

## Details

**Type:**  PDOException

**Code:**  1045

**Message:**  SQLSTATE[HY000] [1045] Access denied for user 'admin_conference'@'localhost' (using password: YES)

**File:**  C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connectors\Connector.php

**Line:**  119

## Trace

#0 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connectors\Connector.php(119): PDO->__construct(‘mysql:host=loca…’, ‘admin_conferenc…’, ‘!enIzBLa[m%V’, Array) #1 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connectors\Connector.php(56): Illuminate\Database\Connectors\Connector->createPdoConnection(‘mysql:host=loca…’, ‘admin_conferenc…’, ‘!enIzBLa[m%V’, Array) #2 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection(‘mysql:host=loca…’, Array, Array) #3 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connectors\ConnectionFactory.php(100): Illuminate\Database\Connectors\MySqlConnector->connect(Array) #4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors{closure}() #5 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connection.php(956): call_user_func(Object(Closure)) #6 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connection.php(824): Illuminate\Database\Connection->getPdo() #7 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connection.php(709): Illuminate\Database\Connection->reconnectIfMissingConnection() #8 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Connection.php(351): Illuminate\Database\Connection->run(‘select * from ...', Array, Object(Closure)) #9 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Query\Builder.php(1648): Illuminate\Database\Connection->select('select * from…’, Array, true) #10 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Query\Builder.php(1634): Illuminate\Database\Query\Builder->runSelect() #11 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Eloquent\Builder.php(613): Illuminate\Database\Query\Builder->get(Array) #12 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Eloquent\Builder.php(318): Illuminate\Database\Eloquent\Builder->getModels(Array) #13 C:\xampp\htdocs\theconferencein\vendor\illuminate\database\Eloquent\Builder.php(288): Illuminate\Database\Eloquent\Builder->get(Array) #14 C:\xampp\htdocs\theconferencein\bootstrap\dependencies\model.php(35): Illuminate\Database\Eloquent\Builder->first() #15 C:\xampp\htdocs\theconferencein\vendor\pimple\pimple\src\Pimple\Container.php(113): {closure}(Object(Slim\Container)) #16 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\Container.php(123): Pimple\Container->offsetGet(‘site’) #17 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\Container.php(172): Slim\Container->get(‘site’) #18 C:\xampp\htdocs\theconferencein\bootstrap\app.php(128): Slim\Container->__get(‘site’) #19 C:\xampp\htdocs\theconferencein\vendor\pimple\pimple\src\Pimple\Container.php(113): {closure}(Object(Slim\Container)) #20 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\Container.php(123): Pimple\Container->offsetGet(‘view’) #21 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\Container.php(172): Slim\Container->get(‘view’) #22 C:\xampp\htdocs\theconferencein\app\Middleware\OldInputMiddleware.php(10): Slim\Container->__get(‘view’) #23 [internal function]: App\Middleware\OldInputMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #24 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\OldInputMiddleware), Array) #25 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #26 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #27 C:\xampp\htdocs\theconferencein\app\Middleware\ValidationErrorsMiddleware.php(14): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #28 [internal function]: App\Middleware\ValidationErrorsMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #29 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\DeferredCallable.php(43): call_user_func_array(Object(App\Middleware\ValidationErrorsMiddleware), Array) #30 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #31 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #32 C:\xampp\htdocs\theconferencein\vendor\slim\csrf\src\Guard.php(162): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #33 [internal function]: Slim\Csrf\Guard->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #34 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\DeferredCallable.php(43): call_user_func_array(Object(Slim\Csrf\Guard), Array) #35 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #36 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(67): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure)) #37 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(116): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #38 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\App.php(337): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #39 C:\xampp\htdocs\theconferencein\vendor\slim\slim\Slim\App.php(298): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #40 C:\xampp\htdocs\theconferencein\public\index.php(5): Slim\App->run() #41 {main}


#2

The username and/or password for the database connection are incorrect.


closed #3

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.