--查看最大连接数
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 解决方法
猜你喜欢
转载自blog.csdn.net/weixin_48835367/article/details/129395951
今日推荐
周排行