MySQL Forums
Forum List  »  InnoDB

Re: Foreign Key Error 121
Posted by: Stephen Lynch
Date: April 10, 2006 05:52AM

Heikki,

Still getting the same error.

There is nothing much in the error log. Do I need to configure any params in the ini file for error logging?

060410 12:44:02 InnoDB: Started; log sequence number 0 85424452
C:\Program Files\MySQL\MySQL Server 4.1\bin\mysqld-nt: ready for connections.
Version: '4.1.14-nt-log' socket: '' port: 3306 Official MySQL binary


mysql> DROP DATABASE full_fusion;
Query OK, 1 row affected (0.39 sec)

mysql>
mysql> CREATE DATABASE full_fusion;
Query OK, 1 row affected (0.00 sec)

mysql>
mysql> use full_fusion;
Database changed
mysql>
mysql> CREATE TABLE parent (a INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> CREATE TABLE child (a INT NOT NULL PRIMARY KEY, CONSTRAINT FK_staffmember
s_3 FOREIGN KEY (a) REFERENCES parent (a)) ENGINE=InnoDB;
ERROR 1005 (HY000): Can't create table '.\full_fusion\child.frm' (errno: 121)

show innodb status shows the same problem I get with my own table definition.


>If yes, please show the table definitions in the SQL dump relevant for >FK_staffmembers_3.

Im not sure what you mean by this. The table definition of the table that has this constraint name? I can give it to you, but creating the above child table proves its not my table definition.

Thanks,
Stephen

Options: ReplyQuote


Subject
Views
Written By
Posted
22705
April 07, 2006 08:35AM
6496
April 09, 2006 01:38PM
Re: Foreign Key Error 121
7552
April 10, 2006 05:52AM
4181
April 17, 2009 09:54AM
4540
April 10, 2006 07:06AM
4408
April 10, 2006 07:48AM
3864
April 10, 2006 06:06PM
5158
April 11, 2006 09:08AM
3801
April 11, 2006 02:49PM
3981
September 17, 2007 05:54PM
6275
September 26, 2007 09:55AM
3529
July 07, 2008 06:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.