Warning (2): PDO::__construct() [pdo.--construct]: [2002] Connection refused (trying to connect via unix:///var/lib/mysql/mysql.sock) [APP/cakephp-2.5.3/lib/Cake/Model/Datasource/Database/Mysql.php, line 183]
Warning (2): PDO::__construct() [pdo.--construct]: [2002] Connection refused (trying to connect via unix:///var/lib/mysql/mysql.sock) [APP/cakephp-2.5.3/lib/Cake/Model/Datasource/Database/Mysql.php, line 183]
Errors
Notice (8): Undefined variable: a_site_info [APP/View/Elements/frontend/head.ctp, line 23]

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 public_html/View/Errors/missing_connection.ctp

Stack Trace

  • APP/cakephp-2.5.3/lib/Cake/Model/Datasource/DboSource.php line 260Mysql->connect()
  • APP/cakephp-2.5.3/lib/Cake/Model/ConnectionManager.php line 105DboSource->__construct(array)
  • APP/cakephp-2.5.3/lib/Cake/Model/Model.php line 3498ConnectionManager::getDataSource(string)
  • APP/cakephp-2.5.3/lib/Cake/Model/Model.php line 1136Model->setDataSource(string)
  • APP/cakephp-2.5.3/lib/Cake/Model/Model.php line 3525Model->setSource(string)
  • APP/cakephp-2.5.3/lib/Cake/Model/Model.php line 2921Model->getDataSource()
  • APP/cakephp-2.5.3/lib/Cake/Model/Model.php line 2893Model->_readDataSource(string, array)
  • APP/Controller/AppController.php line 121Model->find(string, array)
  • APP/Controller/AppController.php line 63AppController->_beforeFilterFrontend()
  • APP/Controller/AppController.php line 53AppController->__handleAuthentication()
  • [internal function]AppController->beforeFilter(CakeEvent)
  • APP/cakephp-2.5.3/lib/Cake/Event/CakeEventManager.php line 242call_user_func(array, CakeEvent)
  • APP/cakephp-2.5.3/lib/Cake/Controller/Controller.php line 674CakeEventManager->dispatch(CakeEvent)
  • APP/cakephp-2.5.3/lib/Cake/Routing/Dispatcher.php line 187Controller->startupProcess()
  • APP/cakephp-2.5.3/lib/Cake/Routing/Dispatcher.php line 165Dispatcher->_invoke(ProductsController, CakeRequest)
  • APP/webroot/index.php line 99Dispatcher->dispatch(CakeRequest, CakeResponse)
Notice (8): Undefined variable: a_site_info [APP/View/Elements/frontend/footer.ctp, line 6]