Skip to content

Instantly share code, notes, and snippets.

@Svel
Created April 7, 2012 10:51
Show Gist options
  • Select an option

  • Save Svel/2327455 to your computer and use it in GitHub Desktop.

Select an option

Save Svel/2327455 to your computer and use it in GitHub Desktop.
Drop all tables in DB when you r on shared hosting without GRANT
mysqldump -u[USERNAME] -p[PASSWORD] -h[HOST] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] -h[HOST] [DATABASE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment