◎ログファイル ログファイル名 mysqldの起動オプション 説明 出力先 errorログ --log-error サーバから出力されるエラーメッセージを記録する。--log-warnings=数字を指定すると、ワーニングも記録する。 my.cnfまたはmy.iniにファイル名を指定する。指定しなかった場合は、datadir直下。ホスト名.errというファイルに出力される。 Slow Queryログ --slow_query_log 処理に時間のかかったクエリを記録する。記録対象とするクエリの処理時間は、--long_query_time[=時間]で指定する。 my.cnfまたはmy.iniにファイル名を指定する。指定しなかった場合は、datadir直下。ホスト名-slow.logというファイルに出力される。 詳細ログ(general log) --general-log データベース活動