too many connections 解决办法

1、首先需要关闭mysql 重启mysql  service mysql start

2、mysql -uroot -p 输入密码 进入maysllq

3、show global variables like 'wait_timeout';

set global wait_timeout=600;

4、SHOW VARIABLES LIKE '%max_con%';

SET GLOBAL max_connections = 1000;

5、flush privileges

6、exit ;

7、service mysql start

猜你喜欢

转载自www.cnblogs.com/goodboy321/p/9932971.html
今日推荐