mysql连接报错mysql too many connections 解决方法

--查看最大连接数
show variables like '%max_connections%';

--查看实时连接数
show global status like 'Max_used_connections';

--这个数值指的是mysql在关闭一个非交互的连接之前要等待的秒数
show global variables like 'wait_timeout'; 

--调试 避免too many connect
set GLOBAL max_connections=1000; 
set global wait_timeout=300; 

你可能感兴趣的:(Oracle,mysql,数据库,sql)