Report this

What is the reason for this report?

Mysql and lamp issue: Warning: mysqli_real_connect(): (HY000/2002)

Posted on July 21, 2017

Hi guys, I hope you can help me, since 3 days ago I’ve been having issues with my droplet with ubuntu 16.04 and lamp. I use my droplet to run a wordpress site and a crm, both uses mysql, but now the server keeps displaying errors like:

Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/html/wp-includes/wp-db.php on line 1538

I tried uninstalling completely mysql 5.7 and resinstalling it, restoring a wp db backup, this worked for like an hour, the site displayed fine but then the error displays again.

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.