Is there any way to clear mysql query cache without restarting mySQL server?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
according the documentation, this should do it...
In my system (Ubuntu 12.04) I found
RESET QUERY CACHE
and even restarting mysql server not enough. This was due to memory disc caching.After each query, I clean the disc cache in the terminal:
and then reset the query cache in mysql client:
I believe you can use...
...if the user you're running as has reload rights. Alternatively, you can defragment the query cache via...
See the Query Cache Status and Maintenance section of the MySQL manual for more information.