magento index manager 报错,不能index的终极解决方案

乱起八糟设置一顿,回头发现index manager不能index了,

解决办法:

1

Make sure, that the var/locks folder is writable
Make sure, that the var/locks folder is writable
Step 1. Make sure, that the var/locks folder is writable
Step 2. Delete all the .locks file from the var/locks and then try to reindex the data again if it works then it is OK otherwise follow the steps below
Step 3. Run the following MySQL Queries through the PHPMyadmin (Before running these commands take backup of database before running the SQL query. ) - See more at: http://www.expertwebadvisor.com/cannot-initialize-the-indexer-process-in-index-management-in-magento/#sthash.QP9RRE9C.dpuf
Step 1. Make sure, that the var/locks folder is writable
Step 2. Delete all the .locks file from the var/locks and then try to reindex the data again if it works then it is OK otherwise follow the steps below
Step 3. Run the following MySQL Queries through the PHPMyadmin (Before running these commands take backup of database before running the SQL query. ) - See more at: http://www.expertwebadvisor.com/cannot-initialize-the-indexer-process-in-index-management-in-magento/#sthash.QP9RRE9C.dpuf
var/locks确认是可写的

2

清空var/locks文件夹下面的所有文件,重新index 试试,如果还是不可以的话,执行第三部

3

执行前,先备份数据库

执行代码为:

ALTER TABLE catalog_category_entity ENGINE=INNODB; ALTER TABLE core_store ENGINE=INNODB; DELETE FROM catalog_category_product_index; DELETE cpop.* FROM catalog_product_option_price AS cpop INNER JOIN catalog_product_option AS cpo ON cpo.option_id = cpop.option_id WHERE cpo.type = 'checkbox' OR cpo.type = 'radio' OR cpo.type = 'drop_down'; DELETE cpotp.* FROM catalog_product_option_type_price AS cpotp INNER JOIN catalog_product_option_type_value AS cpotv ON cpotv.option_type_id = cpotp.option_type_id INNER JOIN catalog_product_option AS cpo ON cpotv.option_id = cpo.option_id WHERE cpo.type <> 'checkbox' AND cpo.type <> 'radio' AND cpo.type <> 'drop_down'


然后执行index 试试,如果还是不可以,执行第四步

4

使用官方工具修复表:


修复之后,然后index就可以了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值