Is there a nice easy way to drop all tables from a MySQL database, ignoring any foreign key constraints that may be in there?
If in linux (or any other system that support piping, echo and grep) you can do it with one line:
echo "SET FOREIGN_KEY_CHECKS = 0;" > temp.txt; \
mysqldump -u[USER] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP >> temp.txt; \
echo "SET FOREIGN_KEY_CHECKS = 1;" >> temp.txt; \
mysql -u[USER] -p[PASSWORD] [DATABASE] < temp.txt;
I know this is an old question, but I think this method is fast and simple.