Warning (2): PDO::__construct() [pdo.--construct]: [2002] Connection refused (trying to connect via unix:///var/lib/mysql/mysql.sock) [APP/cakephp-2.4.3/lib/Cake/Model/Datasource/Database/Mysql.php, line 175]
Warning (2): PDO::__construct() [pdo.--construct]: [2002] Connection refused (trying to connect via unix:///var/lib/mysql/mysql.sock) [APP/cakephp-2.4.3/lib/Cake/Model/Datasource/Database/Mysql.php, line 175]
Errors

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.4.3/lib/Cake/Model/Datasource/DboSource.php line 260Mysql->connect()
  • APP/cakephp-2.4.3/lib/Cake/Model/ConnectionManager.php line 105DboSource->__construct(array)
  • APP/cakephp-2.4.3/lib/Cake/Model/Model.php line 3471ConnectionManager::getDataSource(string)
  • APP/cakephp-2.4.3/lib/Cake/Model/Model.php line 1126Model->setDataSource(string)
  • APP/cakephp-2.4.3/lib/Cake/Model/Model.php line 3493Model->setSource(string)
  • APP/cakephp-2.4.3/lib/Cake/Model/Model.php line 2897Model->getDataSource()
  • APP/cakephp-2.4.3/lib/Cake/Model/Model.php line 2869Model->_readDataSource(string, array)
  • APP/Controller/AppController.php line 552Model->find(string, array)
  • APP/Controller/AppController.php line 217AppController->_getConfig(string)
  • APP/Controller/AppController.php line 110AppController->_beforeFilterFrontend()
  • APP/Controller/AppController.php line 87AppController->__handleAuthentication()
  • [internal function]AppController->beforeFilter(CakeEvent)
  • APP/cakephp-2.4.3/lib/Cake/Event/CakeEventManager.php line 247call_user_func(array, CakeEvent)
  • APP/cakephp-2.4.3/lib/Cake/Controller/Controller.php line 674CakeEventManager->dispatch(CakeEvent)
  • APP/cakephp-2.4.3/lib/Cake/Routing/Dispatcher.php line 182Controller->startupProcess()
  • APP/cakephp-2.4.3/lib/Cake/Routing/Dispatcher.php line 160Dispatcher->_invoke(ProductsController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 97Dispatcher->dispatch(CakeRequest, CakeResponse)

 

Đang xử lý...