1、查看最大连接数:
mysql>show variables like '%max_connections%';
2、修改最大连接数
1)修改配置文件参数:
[mysqld]
max_connections=1000
2)修改当前运行时参数:
mysql> set global max_connections=1000;
本文介绍了如何查看MySQL的最大连接数,并提供了两种修改方法:通过编辑配置文件或直接更改运行时参数。
1、查看最大连接数:
mysql>show variables like '%max_connections%';
2、修改最大连接数
1)修改配置文件参数:
[mysqld]
max_connections=1000
2)修改当前运行时参数:
mysql> set global max_connections=1000;

被折叠的 条评论
为什么被折叠?