Wednesday, September 29, 2010

DROP ALL TABLES : MYSQL

One of the ways

mysqldump -u<user> -p<pwd> --add-drop-table --no-data <db> | grep ^DROP | mysql -u<user> -p<pwd> <db>

No comments: