My Wordpress website got a "error establishing connection to database" massage.
My host informed me it was because my "user" had too many database connections that were open at once. This caused an error making additional connections, and thus the massage.
This has been corrected by killing deadlocked database connections. There were a number of connections copying data to temporary tables, but the deadlock was caused by a large set of lookups waiting for one update.
Can someone explain to me how this might have happened, and how to avoid it?
(p.s: that WP installation has over 2000 posts)