日期:2014-05-16  浏览次数:20748 次

mysql的缓存命中率为何为0?
系统是redhat5.1,数据库是mysql5.0.27,运行1周多了,查询Qcache_hits为0,底下是我query_cache的配置:
+------------------------------+----------+
| Variable_name | Value |
+------------------------------+----------+
| query_cache_limit | 2048 | 
| query_cache_min_res_unit | 4096 | 
| query_cache_size | 16777216 | 
| query_cache_type | ON | 
| query_cache_wlock_invalidate | OFF | 
+------------------------------+----------+
这是为什么?

------解决方案--------------------
query_cache_limit 才2K,比你初始的query_cache_min_res_unit都小,肯定不行的