Amend the SQL to include:


SET FOREIGN_KEY_CHECKS=0;


before the "INSERT INTO" section of the load script.