Posted By

wnasich on 02/24/10


Tagged

tables drop


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mbria
dantreacy


Drop all tables in a MySQL database


 / Published in: MySQL
 

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

  1. mysqldump -u [USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u [USERNAME] -p[PASSWORD] [DATABASE]

Report this snippet  

You need to login to post a comment.