SQLSTATE[HY000] [2003] Can't connect to MySQL server


Hi all,

I am using the latest version of Piwik. My Piwik server has been running fine for about one year (database about 500 MB ) but in the last week I have got this error message about four times.


Cannot connect to the database:

SQLSTATE[HY000] [2003] Can’t connect to MySQL server on ‘’ (111)

This may be a temporary issue, try refreshing the page. If the problem persists please contact your Piwik administrator.


After I restart MySQL the server is ok again but then after a while it stops again.

Any ideas please?

Thank you…

(Matthieu Aubry) #2

Can you check your error log in Mysql? Or maybe you have sysadmins who will be able to thelp? unfortunately does not seem a piwik issue.


@ matt ok thanks…