Mysql has reached the upper limit of the number of connections. Just modify the configuration of mysql.
show variables like '%max_connections%';
set global max_connections = 5000;
If the number of connections is more than 5,000, it is necessary to separate the read and write from the master-slave replication to avoid the upper limit of single-machine read and write.
Log in to the mysql terminal and use show full processlist to view the mysql connection information.
Mysql has reached the upper limit of the number of connections. Just modify the configuration of mysql.
If the number of connections is more than 5,000, it is necessary to separate the read and write from the master-slave replication to avoid the upper limit of single-machine read and write.
Restart mysql, or disconnect from the Internet immediately, it is possible that your mysql database has been Ddosed by someone else