清除MySQL查询缓存,而无需重新启动服务器 [英] Clear MySQL query cache without restarting server

查看:78
本文介绍了清除MySQL查询缓存,而无需重新启动服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不重新启动mySQL服务器的情况下清除 mysql 查询缓存?

Is there any way to clear mysql query cache without restarting mySQL server?

推荐答案

我相信您可以使用...

I believe you can use...

RESET QUERY CACHE;

...如果您所运行的用户具有重新加载权限.另外,您可以通过...对查询缓存进行碎片整理.

...if the user you're running as has reload rights. Alternatively, you can defragment the query cache via...

FLUSH QUERY CACHE;

请参见查询缓存状态和有关更多信息,请参见MySQL手册的维护"部分.

See the Query Cache Status and Maintenance section of the MySQL manual for more information.

这篇关于清除MySQL查询缓存,而无需重新启动服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆