I am trying to import a .sql file and its failing on creating tables.
Here\'s the query that fails:
CREATE TABLE `data` (
`id` int(10) unsigned NOT NUL
After cruising through the answers above, and experimenting a bit, this is an effective way to solve Foreign Key errors in MySQL (1005 - error 150).
For the foreign key to be properly created, all MySQL asks for is:
Satisfy these requirements and all will be well.