something like this has been posted before, but none of them have had similar symptoms to what I'm experiencing.
Most everyone who mentions this error says it's intermittent - once in a while, during high traffic times, the server will say there are too many connections, and if a user waits a moment and tries again, it will work.
For me, it works consistently (for everyone) for a certain time, and then after that, it tells everyone that there are too many connections. The only way I've found to fix it, and only temporarily, is to restart mysqld. I haven't yet investigated to see whether the mysql daemon contains locked processes, or what is going on inside mysql; I thought someone here might have a suggestion, as the server is remote and I find asking you people easier than installing an SSH client to investigate further.
Relevant information: This is a very high-traffic site (~20-30GB of dynamic text alone per month). I know that PHP automatically closes database connections when finished, but I'm wondering if closing them ASAP (which, right now, I don't do) might increase efficiency. Also, I'm not using persistent connections. Is there a significant reason why I should be?
Also relevant is that I have never had problems like this before, until today, and today it's happened four or five times. I even restarted the server once. By the way, the server is freeBSD, 1.13GHz, 512MB RAM. Hope someone can help me.