As explained here, seems the foreign key constraint has to be dropped by constraint name and not the index name.
The syntax is:
ALTER TABLE footable DROP FOREIGN KEY fooconstraint;
More Related Contents:
- How to truncate a foreign key constrained table?
- How to remove constraints from my MySQL table?
- MySQL Creating tables with Foreign Keys giving errno: 150
- MySQL Error 1215: Cannot add foreign key constraint
- MySQL foreign key constraints, cascade delete
- How do I see all foreign keys to a table or column?
- MySQL Cannot Add Foreign Key Constraint
- How to find all tables that have foreign keys that reference particular table.column and have values for those foreign keys?
- Error Code: 1005. Can’t create table ‘…’ (errno: 150)
- Basics of Foreign Keys in MySQL?
- What does mysql error 1025 (HY000): Error on rename of ‘./foo’ (errorno: 150) mean?
- MySQL – Conditional Foreign Key Constraints
- How do I use on delete cascade in mysql?
- Add Foreign Key to existing table
- How to change the foreign key referential action? (behavior)
- Unique constraint that allows empty values in MySQL
- Error renaming a column in MySQL
- A constraint to prevent the insert of an empty string in MySQL
- Show constraints on tables command
- MySQL foreign key to allow NULL?
- MySQL Errno 150
- Use Composite Primary Key as Foreign Key
- Foreign key constraints: When to use ON UPDATE and ON DELETE
- MySQL distinction between e and é (e acute) – UNIQUE index
- MySQL and Check Constraints
- MySQL DROP all tables, ignoring foreign keys
- MySQL “ERROR 1005 (HY000): Can’t create table ‘foo.#sql-12c_4’ (errno: 150)”
- MySQL errorno 121
- “General error: 1005 Can’t create table” Using Laravel Schema Build and Foreign Keys
- MySQL Relationships