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
I had a similar problem but mine was because i was adding a new field to an existing table that had data , and the new field was referencing another field from the parent table and also had the Defination of NOT NULL and without any DEFAULT VALUES. - I found out the reason things were not working was because
It is important to remember that under normal circumstances if you planned your database well ahead of time, and implemented constraints before data insertion this particular scenario would be avoided
The easier Approach to avoid this gotcha is to
I Hope this helps someone