SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction by Magento position

微笑、不失礼 提交于 2020-01-01 00:21:22

问题


We have a problem in our Magento shop when we try to set the position of the products in a category from manage categories. When we try to save a product after changing the position in "category products" we get the following failure:

SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction

Does anyone know how to solve this?


回答1:


The error occurs most probably because you have the product position index set to auto and Magento tries to rebuild the index along with the product save.
Go to System->Index Management and set the indexes related to catalog to 'manual'.
Then set the product positions and when you are done rebuild the indexes manually.



来源:https://stackoverflow.com/questions/21040460/sqlstate40001-serialization-failure-1213-deadlock-found-when-trying-to-get-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!