开发者社区 问答 正文

mysql缓存为什么是0?

我的一个Mysql库
mysql> SHOW STATUS LIKE 'qcache%';
+-------------------------+-------+
| Variable_name | Value |
+-------------------------+-------+
| Qcache_free_blocks | 0 |
| Qcache_free_memory | 0 |
| Qcache_hits | 0 |
| Qcache_inserts | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 0 |
| Qcache_queries_in_cache | 0 |
| Qcache_total_blocks | 0 |
+-------------------------+-------+
8 rows in set (0.00 sec)
5.1.68版本,percona 源码安装,原先是MYISAM后改成INNODB引擎,这些缓存信息都是0,系统倒也不慢,只是查看缓存状态时都是0,何解?

展开
收起
落地花开啦 2016-02-13 15:53:33 2930 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    show variables like 'query_cache%';
    查询缓存根据启动变量不同是可以关的

    2019-07-17 18:42:07
    赞同 展开评论