Close mysql query cache query cache (user test performance)

First of query cache query

mysql> show global variables like '%cache%';

View query_cache_size, query_cache_type value

Temporarily modify, restore the default will restart.

mysql> set global query_cache_size=0;
mysql> set query_cache_type=0;

Note: query_cache_size is a global variable that must be added , Ltd. Free Join; query_cache_type can be added from time to increase

Permanent changes need to enter in mysql my.ini settings file and add the following restart

query_cache_type=0
query_cache_size=0

 

Guess you like

Origin www.cnblogs.com/xzychoose/p/11653758.html