MySQL Foreign key constraint fails

You are here because of: Cannot resolve table name close to (id) Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails What to check when you have MySQL foreign key related errors Table should be of same engine (InnoDB) Table fields should be of same type Pay attention…