33
29

More than 5 years have passed since last update.

MySQLにて、DBの最大コネクション数と現在のコネクション数を確認する

Last updated at Posted at 2016-05-09

以下のSQL文を発行することで、DBの最大コネクション数を確認することが可能です。
SHOW GLOBAL VARIABLES like 'max_connections';

以下のSQL文では、現在のコネクション数を確認することが可能です。
SHOW STATUS like 'Threads_connected';

以下のSQL文で、現在のDBへの接続を全て表示することが可能です。
SHOW processlist

33
29
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
29