简体   繁体   English

在MySQL中,如何更改并发连接的最大数量?

[英]In MySQL , how do I change the maximum number of concurrent connections?

我现在正在编辑my.cfg,我想更改最大连接数。

# vi /etc/my.cnf
max_connections = 250

Open your MySQL configuration file in your favorite text editor and set the variable "max_connections" to the value you need. 在您喜欢的文本编辑器中打开MySQL配置文件,并将变量“ max_connections”设置为所需的值。 Once that's done, restart your MySQL daemon with /etc/init.d/mysqld restart (the init script path may differ on your system). 完成后,请使用/etc/init.d/mysqld restart重新启动MySQL守护进程(系统中的init脚本路径可能有所不同)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM