( ! ) Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /var/www/jlmorison/blog/wp-includes/wp-db.php on line 1635
Call Stack
#TimeMemoryFunctionLocation
10.0000242032{main}( )../index.php:0
20.0001242472require( '/var/www/jlmorison/blog/wp-blog-header.php' )../index.php:17
30.0001243144require_once( '/var/www/jlmorison/blog/wp-load.php' )../wp-blog-header.php:13
40.0001243888require_once( '/var/www/jlmorison/blog/wp-config.php' )../wp-load.php:37
50.0002245136require_once( '/var/www/jlmorison/blog/wp-settings.php' )../wp-config.php:73
60.0023751288require_wp_db( )../wp-settings.php:124
70.0024806360wpdb->__construct( )../load.php:482
80.0024806896wpdb->db_connect( )../wp-db.php:632
90.0024808632mysqli_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/jlmorison/blog/wp-includes/wp-db.php on line 1667
Call Stack
#TimeMemoryFunctionLocation
10.0000242032{main}( )../index.php:0
20.0001242472require( '/var/www/jlmorison/blog/wp-blog-header.php' )../index.php:17
30.0001243144require_once( '/var/www/jlmorison/blog/wp-load.php' )../wp-blog-header.php:13
40.0001243888require_once( '/var/www/jlmorison/blog/wp-config.php' )../wp-load.php:37
50.0002245136require_once( '/var/www/jlmorison/blog/wp-settings.php' )../wp-config.php:73
60.0023751288require_wp_db( )../wp-settings.php:124
70.0024806360wpdb->__construct( )../load.php:482
80.0024806896wpdb->db_connect( )../wp-db.php:632
90.0026808360wpdb->db_connect( )../wp-db.php:1662
100.0026808504mysql_connect ( )../wp-db.php:1667

( ! ) Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /var/www/jlmorison/blog/wp-includes/wp-db.php on line 1667
Call Stack
#TimeMemoryFunctionLocation
10.0000242032{main}( )../index.php:0
20.0001242472require( '/var/www/jlmorison/blog/wp-blog-header.php' )../index.php:17
30.0001243144require_once( '/var/www/jlmorison/blog/wp-load.php' )../wp-blog-header.php:13
40.0001243888require_once( '/var/www/jlmorison/blog/wp-config.php' )../wp-load.php:37
50.0002245136require_once( '/var/www/jlmorison/blog/wp-settings.php' )../wp-config.php:73
60.0023751288require_wp_db( )../wp-settings.php:124
70.0024806360wpdb->__construct( )../load.php:482
80.0024806896wpdb->db_connect( )../wp-db.php:632
90.0026808360wpdb->db_connect( )../wp-db.php:1662
100.0026808504mysql_connect ( )../wp-db.php:1667
WordPress › Error

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

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.