( ! ) Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /var/www/html/wp-includes/class-wpdb.php on line 1775
Call Stack
#TimeMemoryFunctionLocation
10.10546834016{main}( ).../index.php:0
20.10546834296require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10546834680require_once( '/var/www/html/wp-load.php ).../wp-blog-header.php:13
40.10546835000require_once( '/var/www/html/wp-config.php ).../wp-load.php:50
50.10556836424require_once( '/var/www/html/wp-settings.php ).../wp-config.php:80
60.10627129976require_wp_db( ).../wp-settings.php:124
70.10627131400wpdb->__construct( $dbuser = 'wpuser24666', $dbpassword = 'it8l4gSBeROTGbc', $dbname = 'wp5961253', $dbhost = 'localhost' ).../load.php:562
80.10637131400wpdb->db_connect( $allow_bail = ??? ).../class-wpdb.php:734
90.10637132280mysqli_real_connect( $link = class mysqli { public $client_info = 'mysqlnd 7.4.23'; public $client_version = 70423; public $connect_errno = 2002; public $connect_error = 'Connection refused'; public $errno = 2002; public $error = 'Connection refused' }, $host = 'localhost', $user = 'wpuser24666', $password = 'it8l4gSBeROTGbc', $database = NULL, $port = NULL, $socket = NULL, $flags = 0 ).../class-wpdb.php:1775
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 localhost 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.


( ! ) Notice: fwrite(): write of 1822 bytes failed with errno=28 No space left on device in /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 43
Call Stack
#TimeMemoryFunctionLocation
10.10546834016{main}( ).../index.php:0
20.10546834296require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10546834680require_once( '/var/www/html/wp-load.php ).../wp-blog-header.php:13
40.10546835000require_once( '/var/www/html/wp-config.php ).../wp-load.php:50
50.10556836424require_once( '/var/www/html/wp-settings.php ).../wp-config.php:80
60.10627129976require_wp_db( ).../wp-settings.php:124
70.10627131400wpdb->__construct( $dbuser = 'wpuser24666', $dbpassword = 'it8l4gSBeROTGbc', $dbname = 'wp5961253', $dbhost = 'localhost' ).../load.php:562
80.10637131400wpdb->db_connect( $allow_bail = ??? ).../class-wpdb.php:734
90.10727138840wpdb->bail( $message = '<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you sure the database server is running?</li>\', $error_code = 'db_connect_fail' ).../class-wpdb.php:1844
100.10737139784wp_die( $message = '<p><code>Connection refused</code></p>\n<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you su', $title = ???, $args = ??? ).../class-wpdb.php:3673
110.10737139816_default_wp_die_handler( $message = '<p><code>Connection refused</code></p>\n<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you su', $title = '', $args = [] ).../functions.php:3713
120.10747141560wfWAFStorageFile->saveConfig( $category = 'livewaf' ).../file.php:0
130.10747143688wfWAFStorageFile::atomicFilePutContents( $file = '/var/www/html/wp-content/wflogs/config-livewaf.php', $content = '<?php exit(\'Access denied\'); __halt_compiler(); ?>\n******************************************************************\nThis file is used by the Wordfence Web Application Firewall. Read \nmore at https://docs.wordfence.com/en/Web_Application_Firewall_FAQ\n******************************************************************\na:2:{s:4:"cron";a:4:{i:0;O:42:"wfWAFCronFetchCookieRedactionPatternsEvent":1:{s:11:"\000*\000fireTime";i:1790175216;}i:1;O:24:"wfWAFCronFetchRulesEvent":1:{s:11:"\000*\000fireTime";i:179', $prefix = ??? ).../file.php:659
140.10767144840fwrite( $fp = resource(16) of type (stream), $str = '<?php exit(\'Access denied\'); __halt_compiler(); ?>\n******************************************************************\nThis file is used by the Wordfence Web Application Firewall. Read \nmore at https://docs.wordfence.com/en/Web_Application_Firewall_FAQ\n******************************************************************\na:2:{s:4:"cron";a:4:{i:0;O:42:"wfWAFCronFetchCookieRedactionPatternsEvent":1:{s:11:"\000*\000fireTime";i:1790175216;}i:1;O:24:"wfWAFCronFetchRulesEvent":1:{s:11:"\000*\000fireTime";i:179' ).../file.php:43

( ! ) Fatal error: Uncaught wfWAFStorageFileException: Unable to verify temporary file contents for atomic writing. in /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 52
Call Stack
#TimeMemoryFunctionLocation
10.10546834016{main}( ).../index.php:0
20.10546834296require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10546834680require_once( '/var/www/html/wp-load.php ).../wp-blog-header.php:13
40.10546835000require_once( '/var/www/html/wp-config.php ).../wp-load.php:50
50.10556836424require_once( '/var/www/html/wp-settings.php ).../wp-config.php:80
60.10627129976require_wp_db( ).../wp-settings.php:124
70.10627131400wpdb->__construct( $dbuser = 'wpuser24666', $dbpassword = 'it8l4gSBeROTGbc', $dbname = 'wp5961253', $dbhost = 'localhost' ).../load.php:562
80.10637131400wpdb->db_connect( $allow_bail = ??? ).../class-wpdb.php:734
90.10727138840wpdb->bail( $message = '<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you sure the database server is running?</li>\', $error_code = 'db_connect_fail' ).../class-wpdb.php:1844
100.10737139784wp_die( $message = '<p><code>Connection refused</code></p>\n<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you su', $title = ???, $args = ??? ).../class-wpdb.php:3673
110.10737139816_default_wp_die_handler( $message = '<p><code>Connection refused</code></p>\n<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you su', $title = '', $args = [] ).../functions.php:3713
( ! ) wfWAFStorageFileException: Unable to verify temporary file contents for atomic writing. in /var/www/html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 52
Call Stack
#TimeMemoryFunctionLocation
10.10546834016{main}( ).../index.php:0
20.10546834296require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10546834680require_once( '/var/www/html/wp-load.php ).../wp-blog-header.php:13
40.10546835000require_once( '/var/www/html/wp-config.php ).../wp-load.php:50
50.10556836424require_once( '/var/www/html/wp-settings.php ).../wp-config.php:80
60.10627129976require_wp_db( ).../wp-settings.php:124
70.10627131400wpdb->__construct( $dbuser = 'wpuser24666', $dbpassword = 'it8l4gSBeROTGbc', $dbname = 'wp5961253', $dbhost = 'localhost' ).../load.php:562
80.10637131400wpdb->db_connect( $allow_bail = ??? ).../class-wpdb.php:734
90.10727138840wpdb->bail( $message = '<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you sure the database server is running?</li>\', $error_code = 'db_connect_fail' ).../class-wpdb.php:1844
100.10737139784wp_die( $message = '<p><code>Connection refused</code></p>\n<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you su', $title = ???, $args = ??? ).../class-wpdb.php:3673
110.10737139816_default_wp_die_handler( $message = '<p><code>Connection refused</code></p>\n<h1>Error establishing a database connection</h1>\n<p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or that contact with the database server at <code>localhost</code> could not be established. This could mean your host&#8217;s database server is down.</p>\n<ul>\n<li>Are you sure you have the correct username and password?</li>\n<li>Are you sure you have typed the correct hostname?</li>\n<li>Are you su', $title = '', $args = [] ).../functions.php:3713
120.10747141560wfWAFStorageFile->saveConfig( $category = 'livewaf' ).../file.php:0
130.10747143688wfWAFStorageFile::atomicFilePutContents( $file = '/var/www/html/wp-content/wflogs/config-livewaf.php', $content = '<?php exit(\'Access denied\'); __halt_compiler(); ?>\n******************************************************************\nThis file is used by the Wordfence Web Application Firewall. Read \nmore at https://docs.wordfence.com/en/Web_Application_Firewall_FAQ\n******************************************************************\na:2:{s:4:"cron";a:4:{i:0;O:42:"wfWAFCronFetchCookieRedactionPatternsEvent":1:{s:11:"\000*\000fireTime";i:1790175216;}i:1;O:24:"wfWAFCronFetchRulesEvent":1:{s:11:"\000*\000fireTime";i:179', $prefix = ??? ).../file.php:659