Sudden sql error mesage

(dompro) #1

Hey all,

I have installed and had running for the past 10 days or so a new installation of piwik to cover some sites I am building.
It has been runnig fine for the time it has been installed and has been collecting stats beautifully.
I went to login today and got this error message:

"SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (11) "

Just wondered if anyone had any idea of what may have caused this suddenly. I have done nothing to the installation or the database.
It was working yesterday, then suddenly this today. Weird. Any ideas or help would be much appreciated.


(Matthieu Aubry) #2

It looks like your mysql server is down. If you are on shared hosting, contact your web host. If you are on dedicated server, you can restart mysql.