MySQL Forums
Forum List  »  InnoDB

Re: Soln. for MySql 1005 (Can't create table)
Posted by: Aftab Khan
Date: March 27, 2009 03:55AM

If MySQL reports an error number 1005 from a CREATE TABLE statement, and the error message refers to error 150, table creation failed because a foreign key constraint was not correctly formed. Similarly, if an ALTER TABLE fails and it refers to error 150, that means a foreign key definition would be incorrectly formed for the altered table. You can use SHOW ENGINE INNODB STATUS to display a detailed explanation of the most recent InnoDB foreign key error in the server.

Edited 2 time(s). Last edit at 03/27/2009 04:00AM by Aftab Khan.

Options: ReplyQuote

Written By
Re: Soln. for MySql 1005 (Can't create table)
March 27, 2009 03:55AM

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.