Report this

What is the reason for this report?

Getting MySql error

Posted on June 20, 2019

Here is the complete error that I’m getting:

Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111) in /var/www/thehotskills.com/public_html/wp-includes/wp-db.php on line 1603

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/thehotskills.com/public_html/wp-includes/wp-db.php on line 1633

Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111) in /var/www/thehotskills.com/public_html/wp-includes/wp-db.php on line 1633

My site auto stopped working after some time and get the above errors. To solve this problem, I need to restart again-n-again MySql servers.

How I can solve this problem so that I do not need to start servers again-n-again.

Thanks in advance!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.