echo "SET FOREIGN_KEY_CHECKS = 0;" > ./temp.sql mysqldump --add-drop-table --no-data -u root -p db_name | grep 'DROP TABLE' >> ./temp.sql