Warning: PDO::__construct() [pdo.--construct]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/storage/e/fc/06/martinezeventos2/public_html/app/Banco.php on line 21
Warning: PDO::__construct() [pdo.--construct]: [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (trying to connect via tcp://mysql01.martinezeventos2.hospedagemdesites.ws:3306) in /home/storage/e/fc/06/martinezeventos2/public_html/app/Banco.php on line 21
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known' in /home/storage/e/fc/06/martinezeventos2/public_html/app/Banco.php:21
Stack trace:
#0 /home/storage/e/fc/06/martinezeventos2/public_html/app/Banco.php(21): PDO->__construct('mysql:host=mysq...', 'martinezeventos...', 'martinez2015')
#1 /home/storage/e/fc/06/martinezeventos2/public_html/app/Banco.php(11): Banco->conectar()
#2 /home/storage/e/fc/06/martinezeventos2/public_html/app/model/categoriasModel.php(9): Banco->instanciar()
#3 /home/storage/e/fc/06/martinezeventos2/public_html/app/controller/categoriasController.php(7): categoriasModel->__construct()
#4 /home/storage/e/fc/06/martinezeventos2/public_html/index.php(7): categoriasController->__construct()
#5 {main}
thrown in /home/storage/e/fc/06/martinezeventos2/public_html/app/Banco.php on line 21