首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

mysql的缓存命中率为何为0?解决方案

2012-02-11 
mysql的缓存命中率为何为0?系统是redhat5.1,数据库是mysql5.0.27,运行1周多了,查询Qcache_hits为0,底下是

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都小,肯定不行的

热点排行