how do I drop a foreign key in MySQL 4

Hi, I want to drop a foreign key constraint 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
laredotornado [ Do, 29 Juni 2006 18:50 ] [ ID #1375272 ]

Re: how do I drop a foreign key in MySQL 4

laredotornado [at] zipmail.com schreef:
> Hi, I want to drop a foreign key constraint 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
>

Hi Dave,

If you issue the command SHOW INNODB STATUS right after your ALTER TABLE
command, what output do you get? It should give you additional info
concerning the error you just got.

HTH.
Peter.
--
http://www.phpforums.nl
Peter van Schie [ Fr, 30 Juni 2006 12:51 ] [ ID #1376470 ]
PHP » alt.php.sql » how do I drop a foreign key in MySQL 4

Vorheriges Thema: Date issue
Nächstes Thema: Connect to mysql?