Created
February 14, 2017 21:21
-
-
Save tworzenieweb/570f3e2a6acbdd6524a4bc2725a9cc33 to your computer and use it in GitHub Desktop.
Remove _test_ tables from mysql schemas
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 root -se "SELECT CONCAT('DROP DATABASE ', SCHEMA_NAME, ';') FROM information_schema.SCHEMATA WHERE SCHEMA_NAME LIKE '%_test_%'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment