但是可以通过以下方式改变,使用root用户登录mysql 系统
mysql > show variables like ’max_connections‘;
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 100 |
+-----------------+-------+
在不需要重启的情况下.通过以下命令更改为300
set global max_connections = 300;
为了保证mysql 重启能够生效,还需要编译 /my.ini (默认)
把
max_connections = 300
以上完成之后,下次重启就会使用新的参数
















