查看数据库最大连接数:
show variables like '%max_connections%'
发现默认的数据库最大连接数:max_connections = 151
调整为需要的数值:
set GLOBAL max_connections = 2000;