MySQL Forums
Forum List  »  InnoDB

Re: #1005 - Can't create table (errno: 150)
Posted by: Peter Brawley
Date: May 26, 2013 10:00PM

The job just needs ordinary debugging. The method is simple: create each table, one at a time. If an error occurs, correct the error and repeat. Continue till there are no more errors, then proceed to the next table, and so on for all tables.

The first error you will find, I think, will be "Can't create table 'baza_odzga.nakazy' (errno: 150)". There are three main possible reasons for #150 errors: the referenced table doesn't exist, or the referenced column is not a primary key, or the definition of the foreign key column you have provided does not match that of the referenced column. Which applies in this case, it's your job to find out.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: #1005 - Can't create table (errno: 150)
2209
May 26, 2013 10:00PM


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.