Getting connection failed: php_network_getaddresses: getaddrinfo failed: Name or service not known

Thanks Prerak,

This is the answer, my database is on the same machine so I just needed to edit:

$servername = "localhost"

Now everything is working just fine.

Leave a Comment

tech