Warning (2): PDO::__construct(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname [CORE/Cake/Model/Datasource/Database/Mysql.php, line 172]
Errors | Jornal Caderno Jurídico

Publicidade
Publicidade

Jornal Caderno Jurídico

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: No address associated with hostname

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 3473ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1125Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3495Model->setSource(string)
  • CORE/Cake/Model/Model.php line 3018Model->getDataSource()
  • CORE/Cake/Model/Model.php line 2931Model->_findCount(string, array)
  • CORE/Cake/Model/Model.php line 2867Model->buildQuery(string, array)
  • CORE/Cake/Model/Model.php line 2782Model->find(string, array)
  • APP/Controller/ArtigosController.php line 101Model->exists(string)
  • [internal function]ArtigosController->view(string, string)
  • CORE/Cake/Controller/Controller.php line 490ReflectionMethod->invokeArgs(ArtigosController, array)
  • CORE/Cake/Routing/Dispatcher.php line 185Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 160Dispatcher->_invoke(ArtigosController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 106Dispatcher->dispatch(CakeRequest, CakeResponse)