I noticed that my php errorlog contained following lines: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections in...
Is there a way to see which files are causing this error? So, for example, files that leave connection open?
My point here is that this error appears in the log only when the number of connections is exceeded, so the file mentioned in the errorlog is not necessarily the cause of the error itself (other files may have increased the number of connections).
tried looking into mysql processlists but nothing there… mysql> show status like '%onn%'; mysql> show processlist;