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

posted @ 2018-11-09 02:41  闲花落尽  阅读(551)  评论(0编辑  收藏  举报