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
Error no. 150 means a foreign key constraint failure. You are probably creating this table before the table the foreign key depends on (table keywords). Create that table first and it should work fine.
If it doesn't, remove the foreign key statement and add it after the table is created - you will get a more meaningful error message about the specific constraint failure.