Remove all tables from a database


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE]

URL: http://www.thingy-ma-jig.co.uk/blog/10-10-2006/mysql-drop-all-tables

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.