Warning (2): PDO::__construct(): [2002] Resource temporarily unavailable (trying to connect via unix:///var/lib/mysql/mysql.sock) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 158]
NDOL
 

Missing Database Connection

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

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 262Mysql->connect()
  • CORE/Cake/Model/ConnectionManager.php line 107DboSource->__construct(array)
  • CORE/Cake/Model/Model.php line 3221ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1108Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3243Model->setSource(string)
  • CORE/Cake/Model/Model.php line 2696Model->getDataSource()
  • APP/Controller/DefaultsController.php line 50Model->find(string)
  • [internal function]DefaultsController->index()
  • CORE/Cake/Controller/Controller.php line 486ReflectionMethod->invokeArgs(DefaultsController, array)
  • CORE/Cake/Routing/Dispatcher.php line 187Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 162Dispatcher->_invoke(DefaultsController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 111Dispatcher->dispatch(CakeRequest, CakeResponse)
  • ROOT/index.php line 43require(string)