Last active
December 16, 2015 20:10
-
-
Save djburdick/5490682 to your computer and use it in GitHub Desktop.
mysql drop tables that begin with. #mysql
This file contains hidden or 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 -u user -p[password] -Nse "show tables like 'tmp%'" database -h host.colo | while read table; do mysql -u user -p[password] -e "drop table $table" database -h host.colo; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment