How to set max_connections in MySQL Programmatically

前端 未结 2 1918
一整个雨季
一整个雨季 2021-02-01 02:39

I have a server where a lot of users will connect to it and use a database there, and I am using MySQL. I know that the default number of max_connections in MySQL i

2条回答
  •  孤城傲影
    2021-02-01 03:05

    You can set max connections using:

    set global max_connections = '1 < your number > 100000';

    This will set your number of mysql connection unti (Requires SUPER privileges).

提交回复
热议问题