zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

【数据库】mysql 修改最大连接数

mysql数据库 修改 最大 连接数
2023-09-14 09:15:25 时间

方法一:

show variables like "max_connections"

set GLOBAL max_connections=500

方法二:

修改mysql配置文件my.cnf,在[mysqld]段中添加或修改max_connections值:
max_connections=500
重启mysql服务即可。