Created
          April 8, 2014 22:06 
        
      - 
      
- 
        Save saghul/10200313 to your computer and use it in GitHub Desktop. 
    Drop all tables in a MySQL DB
  
        
  
    
      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
    
  
  
    
  | # 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 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment