"Error SQLSTATE[HY000] [2002] No such file or directory" when installing Matomo

I’m trying to install Matomo and uploaded the files into an empty directory. When I access the URL, I see the welcome screen. Then I click next and instead of the system check (…/index.php?action=systemCheck) I see “An error occurred SQLSTATE[HY000] [2002] No such file or directory”. I re-uploaded the files and used the provider’s tool to repair permissions, they should be all OK.
The server is Apache (I tried with PHP 7.4.14 and 8.0.1) on shared hosting (I cannot configure Apache) and I run several other PHP applications with database access (e.g. WordPress) on the same hosting, so basically database access should work.
I installed Piwik/Matomo on several other servers and never ran into that problem.
Any ideas where could be the cause? Thanks!

Update: I uploaded all files again, this time expressively “binary mode”. Now I can get to the next screen. :slightly_smiling_face: Maybe this was the reason.

1 Like