Skip to content

Instantly share code, notes, and snippets.

@cpliakas
Created August 2, 2012 16:05
Show Gist options
  • Save cpliakas/3238200 to your computer and use it in GitHub Desktop.
Save cpliakas/3238200 to your computer and use it in GitHub Desktop.
Find and clear all cache tables
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