I am using mysql innodb engine and during process of creating foreign keys mysql crashed. Now my table doesn't exist and when I try to create it again I am getting error 150. I know that this error has some relations with constraints but I really don't know how to recreate table. I tried to recreate with same fields but nothing. Also, I dropped tables that start with "#sql-*.frm" but also nothing. I really don't know where innodb store this information about broken tables and theirs constraints. Please help with how to recreate table.
Update:
After using SHOW ENGINE INNODB STATUS i got:
LATEST FOREIGN KEY ERROR
160225 11:50:49 Error in foreign key constraint of table mesavis/furnace_report: there is no index in the table which would contain the columns as the first columns, or the data types in the table do not match the ones in the referenced table or one of the ON ... SET NULL columns is declared NOT NULL. Constraint: , CONSTRAINT "furnace_report_ibfk_2" FOREIGN KEY ("FK_treatment") REFERENCES "treatment" ("ID") ON DELETE CASCADE
But when I try to do ALTER TABLE furnace_report DROP FOREIGN KEY furnace_report_ibfk_2; I got that table furnace_report doesn't exist
How to remove those broken constraints such as furnace_report_ibfk_2. They have to be somewhere placed.