Created
August 2, 2012 16:05
-
-
Save cpliakas/3238200 to your computer and use it in GitHub Desktop.
Find and clear all cache tables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -B -N dbname -e "SHOW TABLES LIKE 'cache%'" | xargs -I {} mysql dbname -e "TRUNCATE {}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment