How do you drop a foreign key constraint?
am 30.06.2006 18:07:13 von laredotornado
Hi, I want to drop a foreign key constraint on an INNODB table in MySQL
4, but i keep getting this error:
mysql> ALTER TABLE ORDER_FORM_CARTRIDGES DROP FOREIGN KEY
FK2_ORDER_FORM_CARTRIDGES; ERROR 1005: Can't create table
'./REFILLSTATION/#sql-6e1_11.frm' (errno: 150)
Grateful for any advice, - Dave
Re: How do you drop a foreign key constraint?
am 04.07.2006 02:52:37 von Jared
Do a backup from administrator and wrap your code in the option chunks begin
and end.
wrote in message
news:1151683633.800473.8610@y41g2000cwy.googlegroups.com...
> Hi, I want to drop a foreign key constraint on an INNODB table in MySQL
> 4, but i keep getting this error:
>
> mysql> ALTER TABLE ORDER_FORM_CARTRIDGES DROP FOREIGN KEY
> FK2_ORDER_FORM_CARTRIDGES; ERROR 1005: Can't create table
> './REFILLSTATION/#sql-6e1_11.frm' (errno: 150)
>
> Grateful for any advice, - Dave
>