MySQL 中的连接数

实时查看当前连接数的方法:

查看最大连接数(max_connections): show variables like '%max_connections%';

修改最大连接数的方法:

  1. 热修改,无需重启: set global max_connections=1024;
  2. 修改配置文件,需要重启: max_connections=1024

First created: 2016-07-10 10:48:12
Last updated: 2022-12-11 Sun 12:49
Power by Emacs 27.1 (Org mode 9.4.4)