When saving related product, it shows an error :
magento SQLSTATE[23000] Duplicate entry '959' for key 'PRIMARY'
Reason:
yes it right, the key is really duplicate in the table
after checking the related product table --- catalog_entity_product_link, the auto increment of 'link_id' is 950 but the latest record is '959', and it doesnt make sense
Solution:
(1) increase the auto increment to 959 , SET AUTO_INCREMENT = 959
or
(2) delete the record after 950, and then save these related product again
沒有留言:
發佈留言