Created
May 30, 2012 06:50
-
-
Save ojimac/2834148 to your computer and use it in GitHub Desktop.
mysql5.0.xでのエラーログ、スロークエリーログ設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 5.0系と5.1系で違っていつも調べなおすのでメモ | |
# エラー | |
log-warnings = 2 # 警告も出す | |
log-error=/var/lib/mysql/{LOG_FILE_NAME} | |
# スロークエリ | |
log_slow_queries=mysql-slow.log | |
long_query_time={n} # n秒以上かかったクエリをログに出力 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment