解决问题:mysql 1040 too many connections
1.mysql -u root -p 回车输入密码进入mysql

2. 执行show variables like "max_connections";

3.执行set GLOBAL max_connections=1000;
![]()
4.执行show variables like "max_connections";

5.退出mysql服务,exit
1.mysql -u root -p 回车输入密码进入mysql

2. 执行show variables like "max_connections";

3.执行set GLOBAL max_connections=1000;
![]()
4.执行show variables like "max_connections";

5.退出mysql服务,exit