Why does mysql obviously enable the cache but cannot be used?

Source: Internet
Author: User
Step 1: SHOWVARIABLESLIKE & #39; % cache % & #39; result: have_query_cacheYES Step 2: success; Step 3: SHOWSTATUSLIKE & #39; % Qcache % & #39 ;; qcache_free_blocks0Qcache_free_memory0Qcache_hits0Qcache_inser mysql cache

Step 1: show variables like '% cache % ';

Result: have_query_cache YES.

Step 2: SELECT SQL _CACHE cr_name FROM t_course t WHERE t. course_id = 365;

Step 3: show status like '% Qcache % ';
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

Thank you!
I can't find any places to disable caching.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.