1

In table 'eav_attribute'.'attribute_id' = 121 and 164 are missing. Since many related tables have reference to them, I cannot import all the related data.

MySQL error #1452 - Cannot add or update a child row: a foreign key constraint fails
 (`DB`.`catalog_product_entity_int`, CONSTRAINT `FK_CAT_PRD_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID`
 FOREIGN KEY (`attribute_id`) REFERENCES `eav_attribute` (`attribute_id`)
 ON DELETE CASCADE)

Could anyone just tell me what data to put into 'eav_attribute'.'attribute_id' = 121 and 164?

(It has a few more bugs, but I managed to fix them)

Fabian Schmengler
66.2k25 gold badges191 silver badges422 bronze badges
asked Mar 13, 2015 at 21:53

1 Answer 1

2

Sample data need to be installed prior to Magento installation. Not taking this into account might be the basic cause of all the problems you are experiencing.

answered Mar 14, 2015 at 16:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.