mysql database error too many connection

show full processlist

show variables like '%max_connections%';


SELECT substring_index(host, ':',1) AS host_name,state,count(*) FROM information_schema.processlist GROUP BY state,host_name;

show global variables like '%wait_timeout';

set global max_connections = 1000;
set global wait_timeout=250;

Guess you like

Origin blog.csdn.net/luwei_cool/article/details/126470434