84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
thinkphp mysql too many connection这个错误!大家有没有遇到呀?求助~我的mysql最大连接数是300
认证0级讲师
登录mysql终端,使用show full processlist查看mysql连接信息。
Mysql达到连接数上限了,修改一下mysql的配置即可。
show variables like '%max_connections%'; set global max_connections = 5000;
如果连接数比5000还多,那就要上主从复制读写分离了,避免单机读写上限。
重启mysql,或者立马断网,有可能你的mysql数据库被别人ddos了
登录mysql终端,使用show full processlist查看mysql连接信息。
Mysql达到连接数上限了,修改一下mysql的配置即可。
如果连接数比5000还多,那就要上主从复制读写分离了,避免单机读写上限。
重启mysql,或者立马断网,有可能你的mysql数据库被别人ddos了