Force drop mysql bypassing foreign key constraint
问题 I'm trying to delete all tables from a database except one, and I end up having the following error: Cannot delete or update a parent row: a foreign key constraint fails Of course I could trial and error to see what those key constraints are and eventually delete all tables but I'd like to know if there is a fast way to force drop all tables (as I'll be able to re-insert those I don't want deleted). Google aimed me at some site that suggested the following method: mysql> SET foreign_key