Change or Set MySQL Long Query Time Value for log-slow-queries変更または時刻値を設定するMySQLの長いクエリのログに遅いためのクエリ

If you場合 enable slow queries log of MySQL database server低速のクエリをMySQLデータベースサーバーのログを有効にする , you will notice that from the slow query log file contains only SQL statements and queries that took more than query_time of 10 seconds to execute or run.は、そのことに気がつくでしょうから、スロークエリのログファイルは、 SQLステートメントとクエリを実行するために10秒以上、または実行したquery_time含まれています。 This is the default value or query time threshold for log_slow_queries function, which is 10 seconds.これはデフォルトの値や、 10秒ですlog_slow_queries関数は、クエリの時間をきいています。 10 seconds is way too long for a SQL query to complete, so the value may be too high to capture any meaningful data. 10秒方法を完了するには、 SQLクエリが長すぎるため、値があまりにも意味のあるデータをキャプチャする高されることがあります。 You can alter or change the slow query time to lower value or number of seconds.を変更するか、または低い値または秒数には、低速のクエリ時間を変更してください。

You can set a new long_query_time in the MySQL configuration file, namely my.cnf or my.ini, normally located in /etc directory.あなたは、 MySQLの設定ファイルで新しいlong_query_time 、すなわちmy.cnfまたはmy.iniは、通常は/ etcディレクトリにある設定することができます。 Simply add the following line to the configuration file:単純に設定をファイルには、以下の行を追加します:

long_query_time = 5 long_query_time = 5

Above option will set the slow or long query limit as 5 seconds, which means MySQL will capture and log all SQL queries that took longer than 5 seconds to execute and finish running to the log file.上記のオプションを設定する、または長いクエリの制限は、 MySQLをキャプチャし、その実行するために5秒以上の長い時間がかかったし、ログファイルに実行しているすべてのSQLクエリのログを終えることを意味5秒、遅い。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これはマシンとして"保証なしにされている"提供されているページを翻訳しています。 Machine translation may be difficult to understand.機械翻訳を理解するのが難しい場合があります。 Please refer toを参照してください original English articleオリジナルの英語の記事 whenever possible.可能な場合。

Share and contribute or get technical support and help at共有して貢献するかを得る技術サポートと支援 My Digital Life Forums 私のデジタルライフフォーラム .



One Response to “Change or Set MySQL Long Query Time Value for log-slow-queries” 1つの応答"の設定を変更またはMySQLの長いクエリの時刻値のログのためのスロークエリ"に

  1. Toddトッド
    June 20th, 2007 00:43 2007年6月、第20回2007/07/14 00:43
    1

    Stating that “10 seconds is way too long for a SQL query to complete” is slightly irresponsible, as 10 seconds might be perfectly reasonable for some queries to complete given the dataset and hardware being queried against combined with the complexity of the query.は、 " 10秒の方法は、 SQLクエリが長すぎます"わずかには、いくつかのクエリに対して10秒完全に合理的かもしれません無責任だ完了するには、クエリの複雑さと組み合わせに対して照会して、データセットとハードウェアを完了すると述べている。

    Seeing as how this page is ranking quite high for people having performance issues with MySQL, I feel it is important to set this straight.このページをどのようにMySQLとのパフォーマンスの問題を持つ人はかなりの高さランキングを見て、私はこのストレートを設定することが重要であると考えている。 One should not read this article and assume that their queries are performing unreasonably slow simply because they take over 10 seconds.この記事を読むことはありませんし、そのクエリを実行していると仮定不当にゆっくりというだけの理由で10秒かかる。

Leave a Replyは、返信のままに

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> これらのタグ :の<a href=""使用することができますtitle=""> <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite=""> <cite>の<code> <デル日時= " " >の<em> <i> <q cite=""> <strike> <strong>

Subscribe without commentingチャンネル登録コメントなし


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article着信は、文書の検索利用規約

log-slow-queries スロークエリログ - - mysql long_query_time mysqlのlong_query_time - - mysql long query time mysqlの長いクエリ時間 - - mysql max query time mysqlの最大クエリ時間 - - long-query-time 長いクエリタイム - - mysql long queries mysqlの長いクエリ - - long query time 長いクエリ時間 - - mysql long query mysqlの長いクエリ - - mysql time limit mysqlの時間制限 - - mysql slow query time mysqlのスロークエリ時間 - - mysql long-query-time 長い時MySQLクエリ - - mysql limit query time mysqlのクエリの時間制限 - - log slow queries スロークエリログ - - mysql maximum query time mysqlの最大クエリ時間 - - mysql query time limit mysqlのクエリの時間制限 - - mysql kill long query mysqlの長いクエリを殺す - - slow query time スロークエリ時間 - - mysql long 長い間のmysql - - long_query_time mysql long_query_timeのmysql - - mysql set long_query_time MySQLの設定long_query_time - - mysql long running queries 長いmysqlのクエリを実行している - - log-slow-queries long_query_time スロークエリログlong_query_time - - mysql log long queries mysqlの長いクエリのログ - - long_query_time long_query_time - - long query time mysql 長いクエリ時間のmysql - - long-query-time MySQL 長い時間のMySQLクエリ - - long queries mysql 長いクエリのmysql - - log-slow-queries= ログインスロークエリ= - - set long_query_time 設定long_query_time - - mysql change time mysqlの変更時刻 - - change long_query_time 変更long_query_time - - set mysql 設定のmysql - - mysql kill long queries mysqlの長いクエリを殺す - - long time query 長い時間クエリ - - long running queries mysql 長いmysqlのクエリを実行している - - mysql slow queries time mysqlの遅いクエリ時間 - - mysql long time query mysqlの長い時間クエリ - - mysql slow query threshold mysqlのスロークエリ閾値 - - mysql limit time query MySQLの制限時間クエリ - - mysql set query time limit MySQLの設定クエリの時間制限 - - query takes long time クエリ長い時間がかかる - - long_query_time change long_query_time変更 - - mysql slow query limit mysqlの遅いクエリを制限する - - mysql set time limit MySQLの設定時間制限 - - change long query time 長いクエリの時間を変更 - - log-slow-queries スロークエリログ - - max time value in sql 時間最大値のSQL - - mysql set query MySQLの設定クエリ - - set slow query time mysql スロークエリ時間mysqlの設定 - - setting log-slow-queries for mysql スロークエリのログのためのMySQLの設定 - -