Can’t Drop foreign key in MySQL

Please run an SHOW CREATE TABLE course; to make sure instructorID is the name of foreign key constraint.

Additional:
The error means MySQL searches for a foreign key constraint named “InstructorID” but there is no constraint with such name, maybe this is your column name, but you have to use the constraint name to delete foreign keys.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)