You need to remove the foreign key using the alter statement:
ALTER TABLE yourtable DROP CONSTRAINT yourforeignkeyname
You might also be able to drop it (works in the MySQL console, but may not work in phpmyadmin, as I'm not sure how the sessions are handled)
SET FOREIGN_KEY_CHECKS=0; DROP TABLE yourtable;
Note: this is very dangerous and not recommended if you are seriously using foreign keys.
source share