クエリキャッシュを確認・削除する
MySQLでクエリキャッシュの確認をするには以下のコマンドを実行する
mysql> show status like 'Qcache%' -> ; +-------------------------+----------+ | Variable_name | Value | +-------------------------+----------+ | Qcache_free_blocks | 1 | | Qcache_free_memory | 16768408 | | Qcache_hits | 24 | | Qcache_inserts | 168 | | Qcache_lowmem_prunes | 0 | | Qcache_not_cached | 25 | | Qcache_queries_in_cache | 0 | | Qcache_total_blocks | 1 | +-------------------------+----------+ 8 rows in set (0.00 sec) mysql>
削除する時は
mysql> reset query cache;