MySQL Error Message
Cannot add or update a child row: a foreign key
constraint fails (%s)
Reason for the Error
InnoDB reports this error when you try to add a
row but there is no parent row, and a
foreign key
constraint fails. Add the parent row first.