I have uploaded my web app created on CakePhp Framework.
It cannot connect to the database despite giving the correct credentials.
PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known [CORE/Cake/Model/Datasource/Database/Mysql.php, line 184]
I checked what was written on line 184 its the PDO SQL connection.
$this->_connection = new PDO(
I also enabled already the PDO extension in php.ini using
Despite all that I still have no luck in connecting to database.
Fixed this already.
Solution was just to simply rename the host.