( ! ) Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1626
Call Stack
#TimeMemoryFunctionLocation
10.0001238496{main}( ).../index.php:0
20.0001238928require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.0001239592require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
40.0002240328require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
50.0003241576require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:53
60.00791105472require_wp_db( ).../wp-settings.php:126
70.00801159096require_once( '/var/www/html/wp-content/db.php' ).../load.php:414
80.00821249840W3TC\DbCache_Wpdb::instance( ).../db.php:41
90.00861340936W3TC\DbCache_WpdbNew->initialize( ).../DbCache_Wpdb.php:53
100.00861340984W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_WpdbNew.php:104
110.00861341088W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:232
120.00861341208W3TC\DbCache_WpdbNew->initialize( ).../DbCache_WpdbNew.php:359
130.00871341256W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_WpdbNew.php:104
140.00871341304W3TC\DbCache_WpdbNew->default_initialize( ).../DbCache_WpdbInjection.php:38
150.00871341496wpdb->__construct( ).../DbCache_WpdbNew.php:218
160.00871341304W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:631
170.00871341752wpdb->db_connect( ).../DbCache_WpdbNew.php:97
180.00881343280mysqli_real_connect ( ).../wp-db.php:1626

( ! ) 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 1658
Call Stack
#TimeMemoryFunctionLocation
10.0001238496{main}( ).../index.php:0
20.0001238928require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.0001239592require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
40.0002240328require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
50.0003241576require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:53
60.00791105472require_wp_db( ).../wp-settings.php:126
70.00801159096require_once( '/var/www/html/wp-content/db.php' ).../load.php:414
80.00821249840W3TC\DbCache_Wpdb::instance( ).../db.php:41
90.00861340936W3TC\DbCache_WpdbNew->initialize( ).../DbCache_Wpdb.php:53
100.00861340984W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_WpdbNew.php:104
110.00861341088W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:232
120.00861341208W3TC\DbCache_WpdbNew->initialize( ).../DbCache_WpdbNew.php:359
130.00871341256W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_WpdbNew.php:104
140.00871341304W3TC\DbCache_WpdbNew->default_initialize( ).../DbCache_WpdbInjection.php:38
150.00871341496wpdb->__construct( ).../DbCache_WpdbNew.php:218
160.00871341304W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:631
170.00871341752wpdb->db_connect( ).../DbCache_WpdbNew.php:97
180.00921343104W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:1653
190.00921343104wpdb->db_connect( ).../DbCache_WpdbNew.php:97
200.00921343248mysql_connect ( ).../wp-db.php:1658

( ! ) Warning: mysql_connect(): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1658
Call Stack
#TimeMemoryFunctionLocation
10.0001238496{main}( ).../index.php:0
20.0001238928require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.0001239592require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
40.0002240328require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
50.0003241576require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:53
60.00791105472require_wp_db( ).../wp-settings.php:126
70.00801159096require_once( '/var/www/html/wp-content/db.php' ).../load.php:414
80.00821249840W3TC\DbCache_Wpdb::instance( ).../db.php:41
90.00861340936W3TC\DbCache_WpdbNew->initialize( ).../DbCache_Wpdb.php:53
100.00861340984W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_WpdbNew.php:104
110.00861341088W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:232
120.00861341208W3TC\DbCache_WpdbNew->initialize( ).../DbCache_WpdbNew.php:359
130.00871341256W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_WpdbNew.php:104
140.00871341304W3TC\DbCache_WpdbNew->default_initialize( ).../DbCache_WpdbInjection.php:38
150.00871341496wpdb->__construct( ).../DbCache_WpdbNew.php:218
160.00871341304W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:631
170.00871341752wpdb->db_connect( ).../DbCache_WpdbNew.php:97
180.00921343104W3TC\DbCache_WpdbNew->db_connect( ).../wp-db.php:1653
190.00921343104wpdb->db_connect( ).../DbCache_WpdbNew.php:97
200.00921343248mysql_connect ( ).../wp-db.php:1658
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.