Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.


Recommended practice in server frameworks is to control the information in the errors according to the environment i.e. Development|Production.

But many websites fail to do so.


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.

This is a common "HN Hug-of-Death" ;)


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.


We probably DDoS’d it.


> 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.

Quite possibly not optimised for heavy traffic.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: