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
You can get the actual error message by running SHOW ENGINE INNODB STATUS; and then looking for LATEST FOREIGN KEY ERROR in the output.
SHOW ENGINE INNODB STATUS;
LATEST FOREIGN KEY ERROR
Source: answer from another user in a similar question