mysql数据库 报错 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;

你可能感兴趣的:(Mysql,数据库,mysql,connection)