Connections are through localhost, using the mysqld sock file. These are working 99+% of the time, but under some weird conditions I get the error:
SQLSTATE[HY000] [2002] No such file or directory
The same pages will work again on the next request.
The only thing I can think of is some kind of strange filesystem error.