VamShop

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 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/AppController.php line 237Model->find(string, array)
  • APP/Controller/PagesController.php line 29AppController->beforeFilter()
  • CORE/Cake/Event/CakeEventManager.php line 243PagesController->beforeFilter(CakeEvent)
  • CORE/Cake/Controller/Controller.php line 677CakeEventManager->dispatch(CakeEvent)
  • CORE/Cake/Routing/Dispatcher.php line 189Controller->startupProcess()
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(PagesController, CakeRequest)
  • APP/webroot/index.php line 106Dispatcher->dispatch(CakeRequest, CakeResponse)