how to drop a table with all the foreign key references in mysql code example Example: drop all foreign key constraints mysql SET foreign_key_checks = 0;