MySQLの色々確認コマンドまとめ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[MySQL]]
*最大接続数設定 [#l965a030]
mysql> show global variables like 'max_connections';
*起動してからの累積接続数 [#kfa0ce4c]
mysql> show global status like 'Connections';
*起動してからこれまでの最大同時接続数 [#aaf32407]
mysql> show global status like 'Max_used_connections';
*threads 関連ステータス [#g7e12f8e]
mysql> show global status like 'Thread_%';
Threads_cached
キャッシュされているスレッド数(スレッドは使いまわされる)
Threads_connected
現在の接続数
Threads_created
接続を処理するために生成されたスレッド数(この値が増えま...
Threads_running
スリープ状態になっていないスレッドの数
*プロセスを強制終了する [#be528e74]
mysql>show processlist; <--IDを確認
mysql>kill 該当のID
終了行:
[[MySQL]]
*最大接続数設定 [#l965a030]
mysql> show global variables like 'max_connections';
*起動してからの累積接続数 [#kfa0ce4c]
mysql> show global status like 'Connections';
*起動してからこれまでの最大同時接続数 [#aaf32407]
mysql> show global status like 'Max_used_connections';
*threads 関連ステータス [#g7e12f8e]
mysql> show global status like 'Thread_%';
Threads_cached
キャッシュされているスレッド数(スレッドは使いまわされる)
Threads_connected
現在の接続数
Threads_created
接続を処理するために生成されたスレッド数(この値が増えま...
Threads_running
スリープ状態になっていないスレッドの数
*プロセスを強制終了する [#be528e74]
mysql>show processlist; <--IDを確認
mysql>kill 該当のID
ページ名: