PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections


The OJ, which was built before, suddenly made an HTTP 500 error this evening. When I opened the log, I found that the MySQL database collapsed.


Then open the MySQL configuration file. The path of the configuration file is as follows


Max the number of links in it_ Change the connections to 1000, and then restart mysql.

Read More: