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