Skip to content

Instantly share code, notes, and snippets.

@saghul
Created April 8, 2014 22:06
Show Gist options
  • Save saghul/10200313 to your computer and use it in GitHub Desktop.
Save saghul/10200313 to your computer and use it in GitHub Desktop.

Revisions

  1. saghul created this gist Apr 8, 2014.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # You can thank https://twitter.com/miguel2angel

    mysql -N -e "SELECT CONCAT('DROP TABLE ', GROUP_CONCAT(table_name), ';') FROM information_schema.tables WHERE table_schema = 'dbName'" | mysql dbName