Warning (2): PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php, line 175]
Warning (2): PDO::__construct() [pdo.construct]: php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/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] php_network_getaddresses: getaddrinfo failed: Name or service not known

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 3477ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1126Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3499Model->setSource(string)
  • CORE/Cake/Model/Model.php line 2903Model->getDataSource()
  • APP/Model/AppModel.php line 156Model->_readDataSource(string, array)
  • APP/Model/AppModel.php line 145AppModel->{closure}()
  • APP/Model/AppModel.php line 158AppModel->readCache(string, Closure)
  • CORE/Cake/Model/Model.php line 2875AppModel->_readDataSource(string, array)
  • APP/Model/Category.php line 89Model->find(string, array)
  • APP/Controller/AppController.php line 102Category->getMenuTree()
  • [internal function]AppController->beforeFilter(CakeEvent)
  • CORE/Cake/Event/CakeEventManager.php line 247call_user_func(array, CakeEvent)
  • CORE/Cake/Controller/Controller.php line 674CakeEventManager->dispatch(CakeEvent)
  • CORE/Cake/Routing/Dispatcher.php line 182Controller->startupProcess()
  • CORE/Cake/Routing/Dispatcher.php line 160Dispatcher->_invoke(CategoriesController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 110Dispatcher->dispatch(CakeRequest, CakeResponse)