Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×