Error establishing a database connection

array(4) { ["type"]=> int(2) ["message"]=> string(103) "mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known" ["file"]=> string(39) "/var/www/html/include/mysql2i.class.php" ["line"]=> int(46) }