Mysql Error 2002: Can’t connect to local Mysql server through socket

Asked

Viewed 675 times

1

I’m just putting a website for hosting and already set up the connections mysqli, but it’s giving this error here when trying to run the site:

Warning: mysqli::mysqli(): (HY000/2002): Can’t connect to local Mysql server through socket '/var/run/mysqld/mysqld.Sock' (2)

Somebody knows what to do to fix this?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.