Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/devpremium/class/loginClass.php:12 Stack trace: #0 /var/www/devpremium/class/loginClass.php(12): PDO->__construct('mysql:host=db.d...', 'devpremium', '') #1 /var/www/devpremium/index.php(13): loginController->__construct() #2 {main} Next PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/devpremium/class/loginClass.php:12 Stack trace: #0 /var/www/devpremium/class/loginClass.php(12): PDO->__construct('mysql:host=db.d...', 'devpremium', '') #1 /var/www/devpremium/index.php(13): loginController->__construct() #2 {main} thrown in /var/www/devpremium/class/loginClass.php on line 12