>
Warning: mysql_connect(): User yingling_sandbox already has more than 'max_user_connections' active connections in /home/content/41/5598741/html/random/calvin_and_hobbes/search.php on line 10
Unable to connect to database! Please try again later.
I'm always curious why the default behavior of many server frameworks exposes so much information. I think it should just drop the connection by default for this error.
You can change that in the php.ini to set the levels of Warnings/Errors to show if you want to. (And also naturally the MySQL config, to allow more connections)
But if you were the developer of this code, it's useful to pinpoint what went wrong and where.
It's to aid the developer during development. All of them provide ways to hide this in production. But most developers remain ignorant or are lazy to bother about it.
I'd assume they're optimizing for beginner developer UX, and assuming that anyone using mysql for something important will know to customize the error handling.
> This page is strictly a tribute to Calvin & Hobbes, the best comic ever, and two of the best characters who have taught me so much over many years. It is meant for research purposes only.