Have you set up the script using the installer?
Failed to connect to MySQL: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known