472,133 Members | 982 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

How do you drop a foreign key constraint?

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

Jun 30 '06 #1
1 5552
Do a backup from administrator and wrap your code in the option chunks begin
and end.
<la***********@zipmail.comwrote in message
news:11********************@y41g2000cwy.googlegrou ps.com...
Hi, I want to drop a foreign key constraint on an INNODB table in MySQL
4, but i keep getting this error:

mysqlALTER 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

Jul 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jeremiah Jacks | last post: by
1 post views Thread by Sabrina | last post: by
10 posts views Thread by hilz | last post: by
1 post views Thread by Thomas Chille | last post: by
8 posts views Thread by shsandeep | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.