方法一:

show processlist;
show variables like 'max_connections';
show global status like 'max_used_connections';
set GLOBAL max_connections=1500;

 

方法二:

修改my.ini:

max_connections=1000

这种方法要重启。

解决MYSQL错误:ERROR 1040 (08004): Too many connections

相关文章: