Re: ERROR 1005: Can't create table (errno: 150) [ANOTHER SOLUTION]
Date: January 11, 2010 10:23AM
In my case, the problem was that the NAMES of the foreign keys were not unique.
I wasn't aware that this was a requirement, but changing them worked.
So I changed the line:
KEY `fk_productid`
to
KEY `fk_productid222`
And it worked! (This was because another table was using the foreign key name "fk_productid"