Sorry, but an error occurred

Could not connect to MySQL or to database.
MySQL said : php_network_getaddresses: getaddrinfo failed: Name or service not known