赞
踩
- query_cache_size=10M
- query_cache_type=1
- mysql> show variables like '%query_cache%';
- +------------------------------+----------+
- | Variable_name | Value |
- +------------------------------+----------+
- | have_query_cache | YES |
- | query_cache_limit | 1048576 |
- | query_cache_min_res_unit | 4096 |
- | query_cache_size | 10485760 |
- | query_cache_type | ON |
- | query_cache_wlock_invalidate | OFF |
- +------------------------------+----------+
- 6 rows in set (0.00 sec)
- mysql> select count(*) from wei ;
- +----------+
- | count(*) |
- +----------+
- | 4194304 |
- +----------+
- 1 row in set (3.92 sec)
-
- mysql> select count(*) from wei ;
- +----------+
- | count(*) |
- +----------+
- | 4194304 |
- +----------+
- 1 row in set (0.00 sec)
- mysql> show status like 'qcache%';
- +-------------------------+----------+
- | Variable_name | Value |
- +-------------------------+----------+
- | Qcache_free_blocks | 1 |
- | Qcache_free_memory | 10475424 |
- | Qcache_hits | 1 |
- | Qcache_inserts | 1 |
- | Qcache_lowmem_prunes | 0 |
- | Qcache_not_cached | 0 |
- | Qcache_queries_in_cache | 1 |
- | Qcache_total_blocks | 4 |
- +-------------------------+----------+
- 8 rows in set (0.00 sec)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。