MySQL Forums
Forum List  »  InnoDB

Re: mysql inno db foregin key issue
Posted by: Peter Brawley
Date: August 04, 2022 07:04AM

As your post indicates, your cmd ...

show engine innodb status;

... reports that the query ...

INSERT INTO `catalog_product_entity_varchar` (`attribute_id`,`store_id`,`row_id`,`value`) VALUES ('3993', '0', '0', '0') ON DUPLICATE KEY UPDATE `attribute_id` = VALUES(`attribute_id`), `store_id` = VALUES(`store_id`), `row_id` = VALUES(`row_id`), `value` = VALUES(`value`)

... failed because it couldn't find a row with row_id=0 in catalog_product_entity` ...

Foreign key constraint fails for table `kent_magento`.`catalog_product_entity_varchar`:
,CONSTRAINT `CAT_PRD_ENTT_VCHR_ROW_ID_CAT_PRD_ENTT_ROW_ID` FOREIGN KEY (`row_id`) REFERENCES `catalog_product_entity` (`row_id`) ON DELETE CASCADE

Options: ReplyQuote


Subject
Views
Written By
Posted
492
August 03, 2022 12:47PM
311
August 04, 2022 12:36AM
Re: mysql inno db foregin key issue
355
August 04, 2022 07:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.