( ! ) Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1612
Call Stack
#TimeMemoryFunctionLocation
110.31666550312{main}( ).../index.php:0
210.31666550752require( '/var/www/html/wp-blog-header.php' ).../index.php:17
310.31666551416require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
410.31676551816require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
510.31676552928require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:109
610.42887382504require_wp_db( ).../wp-settings.php:120
710.42897436312require_once( '/var/www/html/wp-content/db.php' ).../load.php:415
810.42917540824W3TC\DbCache_Wpdb::instance( ).../db.php:41
910.42937572984W3TC\DbCache_Wpdb->initialize( ).../DbCache_Wpdb.php:49
1010.42937573032W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_Wpdb.php:152
1110.42937573136W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:233
1210.42937573256W3TC\DbCache_Wpdb->initialize( ).../DbCache_Wpdb.php:415
1310.42937573304W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_Wpdb.php:152
1410.42937573352W3TC\DbCache_Wpdb->default_initialize( ).../DbCache_WpdbInjection.php:38
1510.42937573544wpdb->__construct( ).../DbCache_Wpdb.php:274
1610.42937573944W3TC\DbCache_Wpdb->db_connect( ).../wp-db.php:639
1710.42937574392wpdb->db_connect( ).../DbCache_Wpdb.php:145
1810.42947575920mysqli_real_connect ( ).../wp-db.php:1612

( ! ) 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 1643
Call Stack
#TimeMemoryFunctionLocation
110.31666550312{main}( ).../index.php:0
210.31666550752require( '/var/www/html/wp-blog-header.php' ).../index.php:17
310.31666551416require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
410.31676551816require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
510.31676552928require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:109
610.42887382504require_wp_db( ).../wp-settings.php:120
710.42897436312require_once( '/var/www/html/wp-content/db.php' ).../load.php:415
810.42917540824W3TC\DbCache_Wpdb::instance( ).../db.php:41
910.42937572984W3TC\DbCache_Wpdb->initialize( ).../DbCache_Wpdb.php:49
1010.42937573032W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_Wpdb.php:152
1110.42937573136W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:233
1210.42937573256W3TC\DbCache_Wpdb->initialize( ).../DbCache_Wpdb.php:415
1310.42937573304W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_Wpdb.php:152
1410.42937573352W3TC\DbCache_Wpdb->default_initialize( ).../DbCache_WpdbInjection.php:38
1510.42937573544wpdb->__construct( ).../DbCache_Wpdb.php:274
1610.42937573944W3TC\DbCache_Wpdb->db_connect( ).../wp-db.php:639
1710.42937574392wpdb->db_connect( ).../DbCache_Wpdb.php:145
1810.42987575744W3TC\DbCache_Wpdb->db_connect( ).../wp-db.php:1638
1910.42987575744wpdb->db_connect( ).../DbCache_Wpdb.php:145
2010.42987575888mysql_connect ( ).../wp-db.php:1643

( ! ) Warning: mysql_connect(): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1643
Call Stack
#TimeMemoryFunctionLocation
110.31666550312{main}( ).../index.php:0
210.31666550752require( '/var/www/html/wp-blog-header.php' ).../index.php:17
310.31666551416require_once( '/var/www/html/wp-load.php' ).../wp-blog-header.php:13
410.31676551816require_once( '/var/www/html/wp-config.php' ).../wp-load.php:37
510.31676552928require_once( '/var/www/html/wp-settings.php' ).../wp-config.php:109
610.42887382504require_wp_db( ).../wp-settings.php:120
710.42897436312require_once( '/var/www/html/wp-content/db.php' ).../load.php:415
810.42917540824W3TC\DbCache_Wpdb::instance( ).../db.php:41
910.42937572984W3TC\DbCache_Wpdb->initialize( ).../DbCache_Wpdb.php:49
1010.42937573032W3TC\DbCache_WpdbInjection_QueryCaching->initialize( ).../DbCache_Wpdb.php:152
1110.42937573136W3TC\_CallUnderlying->initialize( ).../DbCache_WpdbInjection_QueryCaching.php:233
1210.42937573256W3TC\DbCache_Wpdb->initialize( ).../DbCache_Wpdb.php:415
1310.42937573304W3TC\DbCache_WpdbInjection->initialize( ).../DbCache_Wpdb.php:152
1410.42937573352W3TC\DbCache_Wpdb->default_initialize( ).../DbCache_WpdbInjection.php:38
1510.42937573544wpdb->__construct( ).../DbCache_Wpdb.php:274
1610.42937573944W3TC\DbCache_Wpdb->db_connect( ).../wp-db.php:639
1710.42937574392wpdb->db_connect( ).../DbCache_Wpdb.php:145
1810.42987575744W3TC\DbCache_Wpdb->db_connect( ).../wp-db.php:1638
1910.42987575744wpdb->db_connect( ).../DbCache_Wpdb.php:145
2010.42987575888mysql_connect ( ).../wp-db.php:1643
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.