2022-07-18 723
怎么查询mysql的最大连接数
查询命令为:
show variables like '%max_connections%';
MySQL 默认的最大连接数为 100,可以在 mysql 客户端使用上述命令查看
此命令将得到类似以下的输出结果:
+----------------------+-------+ | Variable_name | Value | +----------------------+-------+ | max_connections | 1000 | | max_user_connections | 1000 | +----------------------+-------+
要对 mysql 的最大连接数进行修改,只需要在 my.cnf 配置文件里面修改 max_connections 的值,然后重启 mysql 就行。如果 my.ini 文件中没有找到 max_connections 条目,可自行添加以下条目
max-connections = 1000 max_user_connections = 1000
重启Mysql即可!
原文链接:https://77isp.com/post/2098.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态