Warning (2): PDO::__construct() [pdo.construct]: php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php, line 184]
CakePHP: the rapid development php framework: Errors

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

Error: An Internal Error Has Occurred.

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 3617ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1155Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3644Model->setSource(string)
  • CORE/Cake/Model/Model.php line 3022Model->getDataSource()
  • CORE/Cake/Model/Model.php line 2994Model->_readDataSource(string, array)
  • APP/Controller/TopController.php line 21Model->find(string, array)
  • [internal function]TopController->index(string)
  • CORE/Cake/Controller/Controller.php line 490ReflectionMethod->invokeArgs(TopController, array)
  • CORE/Cake/Routing/Dispatcher.php line 193Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(TopController, CakeRequest)
  • APP/webroot/index.php line 118Dispatcher->dispatch(CakeRequest, CakeResponse)