当前位置:Gxlcms > 数据库问题 > MySQL 查看最大连接数, 当期连接数.

MySQL 查看最大连接数, 当期连接数.

时间:2021-07-01 10:21:17 帮助过:2人阅读

查看最大连接数

  select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME=‘MAX_CONNECTIONS‘;

或者

  show variables like ‘%max_connections%‘;

 

查看当前连接数
  show processlist;

 

设置最大连接数(一次性,重启mysql后还原)

  set global max_connections=200。

MySQL 查看最大连接数, 当期连接数.

标签:

人气教程排行