drop all foreign keys mysql code example Example: drop all foreign key constraints mysql SET foreign_key_checks = 0;