Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /var/www/html/wp-includes/class-wpdb.php on line 1994 Call Stack: 0.0045 456312 1. {main}() /var/www/html/index.php:0 0.0063 456728 2. require('/var/www/html/wp-blog-header.php') /var/www/html/index.php:17 0.0085 457936 3. require_once('/var/www/html/wp-load.php') /var/www/html/wp-blog-header.php:13 0.0096 557240 4. require_once('/var/www/html/wp-config.php') /var/www/html/wp-load.php:50 0.0124 569096 5. require_once('/var/www/html/wp-settings.php') /var/www/html/wp-config.php:151 0.1658 980384 6. require_wp_db() /var/www/html/wp-settings.php:136 0.1730 982264 7. wpdb->__construct($dbuser = 'wp', $dbpassword = '[Sensitive Parameter]', $dbname = 'wordpress', $dbhost = 'db:3306') /var/www/html/wp-includes/load.php:724 0.1730 982312 8. wpdb->db_connect($allow_bail = ???) /var/www/html/wp-includes/class-wpdb.php:772 0.1731 983024 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.