Re: ERROR 1005: Can't create table (errno: 150)
Date: October 20, 2010 03:59AM
Solution for me whilst using the MySQL Administrator tool version 1.2.12 and database version 5.1 was:
If you are trying to add the foreign key column in the same operation as the foreign key itself you get this error.
Create the foreign key field first and execute the change, then create the foreign key and execute the change.
Dan