Error when setting Piwik analytics
- by bertran
I've uploaded the latest version of Piwik unto my web server, which is hosted by go daddy.com, on a linux hosting plan.
I'm setting it up (accessing it from my browser as instructed) and I have the "Piwikinstallation" page open on step 3 (database set-up ) of 9.
I don't know what to imput in the field "database server"... the default is the number 127.0.0.1
When I leave that input as is, and click "Next" leaving the gives the error:
"Error when trying to connect to database server: SQLSTATE[HY000]
[2013] Lost connection to MySQL server at 'reading initial
communication packet', system error: 111"
and changing that input to "localhost" gives me another error:
"Error when trying to connect to database server:SQLSTATE[HY000]
[2002] Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)"