1

slow_query_log を有効にせずに、単一のクエリの出力をどのように再現しますか? 私はrows_examinedを探しています。

4

1 に答える 1

0

形式はまったく同じではありませんが、クエリの を知りたいだけの場合はRows_examined、クエリを実行して出力EXPLAINrowsカウントを確認することで取得できます。

mysql> explain select *
    -> from your_table
    -> where name like '%a%'\G
*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: your_table
         type: ALL
possible_keys: NULL
          key: NULL
      key_len: NULL
          ref: NULL
         rows: 131831
        Extra: Using where
1 row in set (0.00 sec)
于 2014-02-13T15:31:14.887 に答える