MySQL show status - active or total connections?

前端 未结 8 642
旧时难觅i
旧时难觅i 2020-11-27 09:07

When I run show status like \'Con%\' it shows the number of connections, which is 9972 and constantly growing. Is this an active number of connections or connec

8条回答
  •  无人及你
    2020-11-27 09:45

    In order to check the maximum allowed connections, you can run the following query:

    SHOW VARIABLES LIKE "max_connections";
    

    To check the number of active connections, you can run the following query:

    SHOW VARIABLES LIKE "max_used_connections";
    

    Hope it helps.

提交回复
热议问题