Skip to content

Instantly share code, notes, and snippets.

@tworzenieweb
Created February 14, 2017 21:21
Show Gist options
  • Save tworzenieweb/570f3e2a6acbdd6524a4bc2725a9cc33 to your computer and use it in GitHub Desktop.
Save tworzenieweb/570f3e2a6acbdd6524a4bc2725a9cc33 to your computer and use it in GitHub Desktop.
Remove _test_ tables from mysql schemas
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