Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /web/onko29.ru/www/app/db.php on line 8
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known' in /web/onko29.ru/www/app/db.php:8
Stack trace:
#0 /web/onko29.ru/www/app/db.php(8): PDO->__construct('mysql:host=mysq...', 'root', '12344', Array)
#1 /web/onko29.ru/www/app/models/BaseModel.php(46): Db::getConnection()
#2 /web/onko29.ru/www/app/models/News.php(11): BaseModel::getTblValueById('t_news', '181')
#3 /web/onko29.ru/www/app/controllers/NewsController.php(16): News::getNewsItemById('181')
#4 [internal function]: NewsController->actionView('181')
#5 /web/onko29.ru/www/app/router.php(55): call_user_func_array(Array, Array)
#6 /web/onko29.ru/www/index.php(18): Router->run()
#7 {main}
thrown in /web/onko29.ru/www/app/db.php on line 8