Skip to content

Instantly share code, notes, and snippets.

@ymxmore
Created June 19, 2013 07:27
Show Gist options
  • Save ymxmore/5812292 to your computer and use it in GitHub Desktop.
Save ymxmore/5812292 to your computer and use it in GitHub Desktop.
忘れがちなMySQLコマンド達。 ステータス確認系。

show status like 'Max_%';

Max_used_connections : これまでに記録された同時接続数の最大値

show status like 'Threads_%';

Threads_connected : 現在開いている接続の数 Threads_created : 接続を処理するために生成されたスレッド数 Threads_running : スリープ状態になっていないスレッド数

show processlist;

接続のプロセスを表示

show variables like 'max_connections';

最大接続数確認

show variables like 'thread_cache_size';

スレッドキャッシュ数確認

##show variables like 'wait_timeout'; wait_timeout数確認

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment