Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /var/www/html/wp-includes/class-wpdb.php on line 1994 Call Stack: 0.0100 455056 1. {main}() /var/www/html/index.php:0 0.0100 455408 2. require('/var/www/html/wp-blog-header.php') /var/www/html/index.php:17 0.0100 456048 3. require_once('/var/www/html/wp-load.php') /var/www/html/wp-blog-header.php:13 0.0101 456800 4. require_once('/var/www/html/wp-config.php') /var/www/html/wp-load.php:50 0.0146 566904 5. require_once('/var/www/html/wp-settings.php') /var/www/html/wp-config.php:151 0.1553 778352 6. require_wp_db() /var/www/html/wp-settings.php:136 0.1554 780152 7. wpdb->__construct($dbuser = 'wp', $dbpassword = '[Sensitive Parameter]', $dbname = 'wordpress', $dbhost = 'db:3306') /var/www/html/wp-includes/load.php:724 0.1554 780200 8. wpdb->db_connect($allow_bail = ???) /var/www/html/wp-includes/class-wpdb.php:772 0.1554 780912 9. mysqli_real_connect($mysql = class mysqli { public $client_info = 'mysqlnd 8.2.30'; public $client_version = 80230; public $connect_errno = 2002; public $connect_error = 'Connection refused'; public $errno = 2002; public $error = 'Connection refused' }, $hostname = 'db', $username = 'wp', $password = '[Sensitive Parameter]', $database = NULL, $port = 3306, $socket = NULL, $flags = 0) /var/www/html/wp-includes/class-wpdb.php:1994 WordPress › Error

Connection refused

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 db:3306 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.