先对query cache进行查询

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

查看query_cache_size、query_cache_type的值

临时修改,重启后将还原默认。

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

备注:query_cache_size是一个全局变量,必须加global;query_cache_type可加可不加

永久修改 需要进入mysql下的my.ini设置文件添加如下内容并重启

query_cache_type=0
query_cache_size=0

 

相关文章:

  • 2021-09-07
  • 2021-12-10
  • 2021-04-09
  • 2021-12-03
  • 2021-12-10
  • 2021-12-10
  • 2021-12-10
猜你喜欢
  • 2021-12-10
  • 2021-06-29
  • 2021-11-09
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案