( ! ) Warning: mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/html/wp-includes/class-wpdb.php on line 1987
Call Stack
#TimeMemoryFunctionLocation
10.0008395952{main}( ).../index.php:0
20.0011397808require( '/var/www/html/wp-blog-header.php ).../index.php:23
30.0018409088require_once( '/var/www/html/wp-load.php ).../wp-blog-header.php:13
40.0023419728require_once( '/var/www/html/wp-config.php ).../wp-load.php:50
50.0058529808require_once( '/var/www/html/wp-settings.php ).../wp-config.php:102
60.03974330624require_wp_db( ).../wp-settings.php:131
70.04254841080wpdb->__construct( $dbuser = 'wp-user', $dbpassword = '!APasswordHere', $dbname = 'word-press', $dbhost = 'mysql' ).../load.php:687
80.04254841080wpdb->db_connect( $allow_bail = ??? ).../class-wpdb.php:767
90.04264841952mysqli_real_connect( $mysql = class mysqli { public $client_info = 'mysqlnd 8.0.30'; public $client_version = 80030; public $connect_errno = 0; public $connect_error = NULL; public $errno = 0; public $error = '' }, $hostname = 'mysql', $username = 'wp-user', $password = '!APasswordHere', $database = NULL, $port = NULL, $socket = NULL, $flags = 0 ).../class-wpdb.php:1987

( ! ) Warning: mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/html/wp-includes/class-wpdb.php on line 1987
Call Stack
#TimeMemoryFunctionLocation
10.0008395952{main}( ).../index.php:0
20.0011397808require( '/var/www/html/wp-blog-header.php ).../index.php:23
30.0018409088require_once( '/var/www/html/wp-load.php ).../wp-blog-header.php:13
40.0023419728require_once( '/var/www/html/wp-config.php ).../wp-load.php:50
50.0058529808require_once( '/var/www/html/wp-settings.php ).../wp-config.php:102
60.03974330624require_wp_db( ).../wp-settings.php:131
70.04254841080wpdb->__construct( $dbuser = 'wp-user', $dbpassword = '!APasswordHere', $dbname = 'word-press', $dbhost = 'mysql' ).../load.php:687
80.04254841080wpdb->db_connect( $allow_bail = ??? ).../class-wpdb.php:767
90.04264841952mysqli_real_connect( $mysql = class mysqli { public $client_info = 'mysqlnd 8.0.30'; public $client_version = 80030; public $connect_errno = 2002; public $connect_error = 'php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution'; public $errno = 2002; public $error = 'php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution' }, $hostname = 'mysql', $username = 'wp-user', $password = '!APasswordHere', $database = NULL, $port = NULL, $socket = NULL, $flags = 0 ).../class-wpdb.php:1987
WordPress › Error

php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at mysql could not be established. This could mean your host’s database server is down.

If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums.