Missing Database Connection

Error: A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [2002] Connection refused

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 260Mysql->connect()
  • CORE/Cake/Model/ConnectionManager.php line 105DboSource->__construct(array)
  • CORE/Cake/Model/Model.php line 3539ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1136Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3566Model->setSource(string)
  • CORE/Cake/Model/Model.php line 1369Model->getDataSource()
  • CORE/Cake/View/Helper/FormHelper.php line 215Model->schema()
  • CORE/Cake/View/Helper/FormHelper.php line 468FormHelper->_introspectModel(string, string)
  • APP/View/Users/login.ctp line 10FormHelper->create(string)
  • CORE/Cake/View/View.php line 948include(string)
  • CORE/Cake/View/View.php line 910View->_evaluate(string, array)
  • CORE/Cake/View/View.php line 471View->_render(string)
  • CORE/Cake/Controller/Controller.php line 954View->render(null, null)
  • CORE/Cake/Routing/Dispatcher.php line 198Controller->render()
  • CORE/Cake/Routing/Dispatcher.php line 165Dispatcher->_invoke(UsersController, CakeRequest)
  • APP/webroot/index.php line 108Dispatcher->dispatch(CakeRequest, CakeResponse)
  • ROOT/index.php line 41require(string)