MySQL 分析関連
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
目次~
#contents
**slow query [#u42f7e67]
***slow queryログの設定(MySQL 5.5) [#refc4335]
my.cnfの[mysqld]セクションに以下の設定を行う。
-my.cnf
[mysqld]
〜中略〜
slow-query-log = 1
slow-query-log-file = /var/log/mysqld/mysqld_slow-querie...
log-queries-not-using-indexes
long_query_time = 1
-設定内容~
|slow-query-log|slow queryログの有効/無効。0=無効、1=有効...
|slow-query-log-file|slow queryのログ出力先。mysqldの実行...
|log-queries-not-using-indexes|インデックスを使用しない設...
|long_query_time|ログに記録する処理時間の閾値を指定(単位...
-参考~
MySQL 5.5 Reference Manual~
:: 5 MySQL Server Administration~
:: 5.2 MySQL Server Logs~
:: 5.2.5 The Slow Query Log~
http://dev.mysql.com/doc/refman/5.5/en/slow-query-log.html
終了行:
目次~
#contents
**slow query [#u42f7e67]
***slow queryログの設定(MySQL 5.5) [#refc4335]
my.cnfの[mysqld]セクションに以下の設定を行う。
-my.cnf
[mysqld]
〜中略〜
slow-query-log = 1
slow-query-log-file = /var/log/mysqld/mysqld_slow-querie...
log-queries-not-using-indexes
long_query_time = 1
-設定内容~
|slow-query-log|slow queryログの有効/無効。0=無効、1=有効...
|slow-query-log-file|slow queryのログ出力先。mysqldの実行...
|log-queries-not-using-indexes|インデックスを使用しない設...
|long_query_time|ログに記録する処理時間の閾値を指定(単位...
-参考~
MySQL 5.5 Reference Manual~
:: 5 MySQL Server Administration~
:: 5.2 MySQL Server Logs~
:: 5.2.5 The Slow Query Log~
http://dev.mysql.com/doc/refman/5.5/en/slow-query-log.html
ページ名: