Getting MySql error
Here is the complete error that I'm getting:
Warning: mysqlirealconnect(): (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: mysqlconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/thehotskills.com/publichtml/wp-includes/wp-db.php on line 1633
Warning: mysqlconnect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /var/www/thehotskills.com/publichtml/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!