--查看最大连接数
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;
mysql连接报错mysql too many connections 解决方法
最新推荐文章于 2023-08-08 17:49:17 发布