( ! ) Warning: Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in /home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 140
Call Stack
#TimeMemoryFunctionLocation
10.0001401520{main}( ).../index.php:0
20.0002403008require( '/home/twofoldsquare/public_html/wp-blog-header.php ).../index.php:17
30.0003414160require_once( '/home/twofoldsquare/public_html/wp-load.php ).../wp-blog-header.php:13
40.0005426096require_once( '/home/twofoldsquare/public_html/wp-config.php ).../wp-load.php:37
50.0010505568require_once( '/home/twofoldsquare/public_html/wp-settings.php ).../wp-config.php:108
60.03425233616require_wp_db( ).../wp-settings.php:124
70.03715600080require_once( '/home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php ).../load.php:515

( ! ) Warning: Use of undefined constant DB_PASSWORD - assumed 'DB_PASSWORD' (this will throw an Error in a future version of PHP) in /home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 140
Call Stack
#TimeMemoryFunctionLocation
10.0001401520{main}( ).../index.php:0
20.0002403008require( '/home/twofoldsquare/public_html/wp-blog-header.php ).../index.php:17
30.0003414160require_once( '/home/twofoldsquare/public_html/wp-load.php ).../wp-blog-header.php:13
40.0005426096require_once( '/home/twofoldsquare/public_html/wp-config.php ).../wp-load.php:37
50.0010505568require_once( '/home/twofoldsquare/public_html/wp-settings.php ).../wp-config.php:108
60.03425233616require_wp_db( ).../wp-settings.php:124
70.03715600080require_once( '/home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php ).../load.php:515

( ! ) Warning: Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in /home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 140
Call Stack
#TimeMemoryFunctionLocation
10.0001401520{main}( ).../index.php:0
20.0002403008require( '/home/twofoldsquare/public_html/wp-blog-header.php ).../index.php:17
30.0003414160require_once( '/home/twofoldsquare/public_html/wp-load.php ).../wp-blog-header.php:13
40.0005426096require_once( '/home/twofoldsquare/public_html/wp-config.php ).../wp-load.php:37
50.0010505568require_once( '/home/twofoldsquare/public_html/wp-settings.php ).../wp-config.php:108
60.03425233616require_wp_db( ).../wp-settings.php:124
70.03715600080require_once( '/home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php ).../load.php:515

( ! ) Warning: Use of undefined constant DB_HOST - assumed 'DB_HOST' (this will throw an Error in a future version of PHP) in /home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php on line 140
Call Stack
#TimeMemoryFunctionLocation
10.0001401520{main}( ).../index.php:0
20.0002403008require( '/home/twofoldsquare/public_html/wp-blog-header.php ).../index.php:17
30.0003414160require_once( '/home/twofoldsquare/public_html/wp-load.php ).../wp-blog-header.php:13
40.0005426096require_once( '/home/twofoldsquare/public_html/wp-config.php ).../wp-load.php:37
50.0010505568require_once( '/home/twofoldsquare/public_html/wp-settings.php ).../wp-config.php:108
60.03425233616require_wp_db( ).../wp-settings.php:124
70.03715600080require_once( '/home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php ).../load.php:515

( ! ) Warning: mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/twofoldsquare/public_html/wp-includes/wp-db.php on line 1653
Call Stack
#TimeMemoryFunctionLocation
10.0001401520{main}( ).../index.php:0
20.0002403008require( '/home/twofoldsquare/public_html/wp-blog-header.php ).../index.php:17
30.0003414160require_once( '/home/twofoldsquare/public_html/wp-load.php ).../wp-blog-header.php:13
40.0005426096require_once( '/home/twofoldsquare/public_html/wp-config.php ).../wp-load.php:37
50.0010505568require_once( '/home/twofoldsquare/public_html/wp-settings.php ).../wp-config.php:108
60.03425233616require_wp_db( ).../wp-settings.php:124
70.03715600080require_once( '/home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php ).../load.php:515
80.03805651208QM_DB->__construct( $dbuser = 'DB_USER', $dbpassword = 'DB_PASSWORD', $dbname = 'DB_NAME', $dbhost = 'DB_HOST' ).../db.php:140
90.03805651808QM_DB->__construct( $dbuser = 'DB_USER', $dbpassword = 'DB_PASSWORD', $dbname = 'DB_NAME', $dbhost = 'DB_HOST' ).../db.php:75
100.03805651808QM_DB->db_connect( $allow_bail = ??? ).../wp-db.php:632
110.03805653000mysqli_real_connect( $link = class mysqli { public $client_info = 'mysqlnd 7.4.19'; public $client_version = 70419; public $connect_errno = 0; public $connect_error = NULL; public $errno = 0; public $error = '' }, $host = 'DB_HOST', $user = 'DB_USER', $password = 'DB_PASSWORD', $database = NULL, $port = NULL, $socket = NULL, $flags = 0 ).../wp-db.php:1653

( ! ) Warning: mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/twofoldsquare/public_html/wp-includes/wp-db.php on line 1653
Call Stack
#TimeMemoryFunctionLocation
10.0001401520{main}( ).../index.php:0
20.0002403008require( '/home/twofoldsquare/public_html/wp-blog-header.php ).../index.php:17
30.0003414160require_once( '/home/twofoldsquare/public_html/wp-load.php ).../wp-blog-header.php:13
40.0005426096require_once( '/home/twofoldsquare/public_html/wp-config.php ).../wp-load.php:37
50.0010505568require_once( '/home/twofoldsquare/public_html/wp-settings.php ).../wp-config.php:108
60.03425233616require_wp_db( ).../wp-settings.php:124
70.03715600080require_once( '/home/twofoldsquare/public_html/wp-content/plugins/query-monitor/wp-content/db.php ).../load.php:515
80.03805651208QM_DB->__construct( $dbuser = 'DB_USER', $dbpassword = 'DB_PASSWORD', $dbname = 'DB_NAME', $dbhost = 'DB_HOST' ).../db.php:140
90.03805651808QM_DB->__construct( $dbuser = 'DB_USER', $dbpassword = 'DB_PASSWORD', $dbname = 'DB_NAME', $dbhost = 'DB_HOST' ).../db.php:75
100.03805651808QM_DB->db_connect( $allow_bail = ??? ).../wp-db.php:632
110.03805653000mysqli_real_connect( $link = class mysqli { public $client_info = 'mysqlnd 7.4.19'; public $client_version = 70419; public $connect_errno = 2002; public $connect_error = 'php_network_getaddresses: getaddrinfo failed: Name or service not known'; public $errno = 2002; public $error = 'php_network_getaddresses: getaddrinfo failed: Name or service not known' }, $host = 'DB_HOST', $user = 'DB_USER', $password = 'DB_PASSWORD', $database = NULL, $port = NULL, $socket = NULL, $flags = 0 ).../wp-db.php:1653
WordPress › Error

php_network_getaddresses: getaddrinfo failed: Name or service not known

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at DB_HOST. This could mean your host’s database server is down.

If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.