preface
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.
Text
Then open the MySQL configuration file. The path of the configuration file is as follows
/etc/mysql/mysql.conf.d/mysqld.cnf
Max the number of links in it_ Change the connections to 1000, and then restart mysql.
Read More:
- Using the TP framework, an error is reported sqlstate [08004] [1040] too many connections
- In depth analysis of mysq exceeding the number of connections error 1040 (HY000): too many connections
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- PHP Fatal error: Uncaught Error: Class ‘\Elasticsearch\Serializers\SmartSerializer‘ not found in /h
- PHP link database error PHP_ network_ getaddresses: getaddrinfo failed: Name or service not known
- A PHP Error was encountered Severity: Warning Message: mysqli::real_connect(): Headers and client
- php open(/var/lib/php/session/sess_4ofxxx, O_RDWR) failed: Permission denied (13)
- PHP message:filesize(): stat failed for Error
- After upgrading php7, PHP program prompts an error: operator not supported for strings in causes and Solutions
- PHP – PHP Error[2]: Error while sending QUERY packet. PID=*
- Sorting out MySQL “too many connections” solutions
- ERROR 1040 (08004): Too many connections
- PHP:Fatal error: Class ‘COM’ not found in … How to deal with the problem
- Fatal error in PHP project: class’ redis’ not found
- PHP Fatal error: Call to a member function query() on a non-object in
- PHP error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error:
- Solve a bug harvest of DB2 (sqlcode = – 805, sqlstate = 51002, error message = DB2 SQL error: sqlcode = – 805, sqlstate = 5100
- ERR_CONTENT_DECODING_FAILED error occurs in PHP program, summary of solutions
- Connection between PHP 7.4 and MySQL (MariaDB) under Ubuntu (kali Linux)
- Win7 system build PHP + MySQL + Apache environment + deploy ECSHOP project