I have a table whose primary key is used in several other tables and has several foreign keys to other tables.
CREATE TABLE location ( locationID INT NOT
step1: show create table vendor_locations;
show create table vendor_locations;
step2: ALTER TABLE vendor_locations drop foreign key vendor_locations_ibfk_1;
ALTER TABLE vendor_locations drop foreign key vendor_locations_ibfk_1;
it worked for me.