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