重启mysql 服务器 (systemctl restart mysqld.service)
1、mysql -u root -p 回车输入密码进入mysql
2、执行show variables like "max_connections";
3、执行set GLOBAL max_connections=10000;
4、执行show variables like "max_connections";
此时就解决了!
注意:mysql服务器重启之后就会恢复默认的最大连接!
重启mysql 服务器 (systemctl restart mysqld.service)
1、mysql -u root -p 回车输入密码进入mysql
2、执行show variables like "max_connections";
3、执行set GLOBAL max_connections=10000;
4、执行show variables like "max_connections";
此时就解决了!
注意:mysql服务器重启之后就会恢复默认的最大连接!