1. 程式人生 > >too many connections 解決辦法

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