MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
2002 - php_network_getaddresses: getaddrinfo failed: No such host is known.
Query:
[READ] Unable to connect to MySQL server