I am importing a database from an SQL dump and I get this error:
Cannot add or update a child row: a foreign key constraint fails
(`database_name`.`#sql-808_37`, CONSTRAINT `FK_z_log_zemail` FOREIGN KEY (`ID_evn`)
REFERENCES `z_event` (`ID_evn`) ON DELETE SET NULL)
Operation failed with exitcode 1"
I know that it means that the foreign key in the child table is not in the parent table z_event, hence the error.
Question:
Was the process of importing the sql dump aborted from this line on? (Operation failed with exitcode 1)
Is there any "clean" way of bypassing this error without compromising the data integrity? Or any other solutions that do not involve removing the constraint?
Why does this happens? Some bad relationship settings between tables? Like when something was deleted from the parent table, the child table was not updated?
Is there any chance that the sql dump is corrupted? Or is this error pretty common? I am asking to know if I should be worried or not..