Saturday, July 7, 2012

MySQL: Delete / Reset Query Cache

Delete the cache results for MySQL queries:

RESET QUERY CACHE;

OR

FLUSH TABLES;

PS: "FLUSH QUERY CACHE" also exists, but the command only defragments the query cache to better utilize the memory; it does not delete/empty the query cache.

No comments: