( ! ) Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1635
Call Stack
#TimeMemoryFunctionLocation
10.0001238472{main}( ).../index.php:0
20.0001238904require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.0001239568require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
40.0002240304require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
50.0002241544require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:54
60.0041777344require_wp_db( ).../wp-settings.php:124
70.0042831696require_once( '/var/www/html/wp-content/db.php' ).../load.php:470
80.01041161200W3TC\DbCache_Wpdb::instance( ).../db.php:41
90.01081252616W3TC\DbCache_WpdbNew->initialize( ).../DbCache_Wpdb.php:53
100.01081252664W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_WpdbNew.php:104
110.01081252768W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:232
120.01081252888W3TC\DbCache_WpdbNew->initialize( ).../DbCache_WpdbNew.php:359
130.01081252936W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_WpdbNew.php:104
140.01081252984W3TC\DbCache_WpdbNew->default_initialize( ).../DbCache_WpdbInjection.php:38
150.01081253176wpdb->__construct( ).../DbCache_WpdbNew.php:218
160.01081252984W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:632
170.01081253432wpdb->db_connect( ).../DbCache_WpdbNew.php:97
180.01101254968mysqli_real_connect ( ).../wp-db.php:1635

( ! ) Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/html/wp-includes/wp-db.php on line 1667
Call Stack
#TimeMemoryFunctionLocation
10.0001238472{main}( ).../index.php:0
20.0001238904require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.0001239568require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
40.0002240304require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
50.0002241544require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:54
60.0041777344require_wp_db( ).../wp-settings.php:124
70.0042831696require_once( '/var/www/html/wp-content/db.php' ).../load.php:470
80.01041161200W3TC\DbCache_Wpdb::instance( ).../db.php:41
90.01081252616W3TC\DbCache_WpdbNew->initialize( ).../DbCache_Wpdb.php:53
100.01081252664W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_WpdbNew.php:104
110.01081252768W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:232
120.01081252888W3TC\DbCache_WpdbNew->initialize( ).../DbCache_WpdbNew.php:359
130.01081252936W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_WpdbNew.php:104
140.01081252984W3TC\DbCache_WpdbNew->default_initialize( ).../DbCache_WpdbInjection.php:38
150.01081253176wpdb->__construct( ).../DbCache_WpdbNew.php:218
160.01081252984W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:632
170.01081253432wpdb->db_connect( ).../DbCache_WpdbNew.php:97
180.01151254792W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:1662
190.01151254792wpdb->db_connect( ).../DbCache_WpdbNew.php:97
200.01151254936mysql_connect ( ).../wp-db.php:1667

( ! ) Warning: mysql_connect(): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1667
Call Stack
#TimeMemoryFunctionLocation
10.0001238472{main}( ).../index.php:0
20.0001238904require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.0001239568require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
40.0002240304require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
50.0002241544require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:54
60.0041777344require_wp_db( ).../wp-settings.php:124
70.0042831696require_once( '/var/www/html/wp-content/db.php' ).../load.php:470
80.01041161200W3TC\DbCache_Wpdb::instance( ).../db.php:41
90.01081252616W3TC\DbCache_WpdbNew->initialize( ).../DbCache_Wpdb.php:53
100.01081252664W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_WpdbNew.php:104
110.01081252768W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:232
120.01081252888W3TC\DbCache_WpdbNew->initialize( ).../DbCache_WpdbNew.php:359
130.01081252936W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_WpdbNew.php:104
140.01081252984W3TC\DbCache_WpdbNew->default_initialize( ).../DbCache_WpdbInjection.php:38
150.01081253176wpdb->__construct( ).../DbCache_WpdbNew.php:218
160.01081252984W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:632
170.01081253432wpdb->db_connect( ).../DbCache_WpdbNew.php:97
180.01151254792W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:1662
190.01151254792wpdb->db_connect( ).../DbCache_WpdbNew.php:97
200.01151254936mysql_connect ( ).../wp-db.php:1667
WordPress › Error

No such file or directory

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 localhost. 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.