mysql Too many connections

mysql 使用过程中出现错误:Error: ER_CON_COUNT_ERROR: Too many connections
 
版本

 解决办法:

1、查看连接池大小

show variables like "max_connections";

2、设置连接池大小

set persist max_connections=500;

3、查看等待超时时间

show global variables like 'wait_timeout';

4、设置超时等待时间

set persist wait_timeout=360;

5、查看交互超时时间

show global variables like 'interactive_timeout';

6、设置交互超时时间

set persist interactive_timeout=360;
原文地址:https://www.cnblogs.com/laoq112/p/14392416.html