Missing Database Connection

Error: A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)

Notice: If you want to customize this error message, create app/View/Errors/missing_connection.ctp

Stack Trace

  • CORE/Cake/Model/Datasource/DboSource.php line 271Mysql->connect()
  • CORE/Cake/Model/ConnectionManager.php line 105DboSource->__construct(array)
  • CORE/Cake/Model/Model.php line 3646ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1162Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3673Model->setSource(string)
  • CORE/Cake/Model/Model.php line 3040Model->getDataSource()
  • CORE/Cake/Model/Model.php line 3012Model->_readDataSource(string, array)
  • APP/Controller/AreasController.php line 122Model->find(string)
  • [internal function]AreasController->adote()
  • CORE/Cake/Controller/Controller.php line 491ReflectionMethod->invokeArgs(AreasController, array)
  • CORE/Cake/Routing/Dispatcher.php line 193Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(AreasController, CakeRequest)
  • APP/webroot/index.php line 118Dispatcher->dispatch(CakeRequest, CakeResponse)