MySQL 2002 error: Can not connect to local MySQL server through socket

1

I'm just setting up a website for hosting and I've already set up mysqli connections, but I'm giving this error here when trying to run the site:

  

Warning: mysqli :: mysqli (): (HY000 / 2002): Can not connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Does anyone know what to do to fix this?

    
asked by anonymous 11.10.2016 / 23:04

0 answers