magento - Cannot initialize the indexer process

又一个问题纠缠了洒家好几天,今天终于找到解决办法,顿时如拨云见日。

问题描述:

就是magrnto刷新index的时候 出现Cannot initialize the indexer process.




用SSH刷新的时候会报错:



这样就导致了一个问题,站内搜索功能没法用:




还有可能出现一些其他的问题,你说悲催不悲催?

查看数据库,却是是有个很屌丝的表无法创建,不懂程序的你,伤不起啊~~~


废话不多说,直接说解决办法:

在数据库中运行一下代码:

ALTER TABLE catalog_category_entity ENGINE=INNODB;
ALTER TABLE core_store ENGINE=INNODB;
ALTER TABLE catalog_category_entity ENGINE=INNODB;
ALTER TABLE core_store ENGINE=INNODB;

然后删除 var/locks文件夹下的所有文件,

然后再去刷新吧:

[~/public_html/shell]# php indexer.php reindexall
Product Attributes index was rebuilt successfully
Product Prices index was rebuilt successfully
Catalog URL Rewrites index was rebuilt successfully
Product Flat Data index was rebuilt successfully
Category Flat Data index was rebuilt successfully
Category Products index was rebuilt successfully
Catalog Search Index index was rebuilt successfully
Stock Status index was rebuilt successfully
Tag Aggregation Data index was rebuilt successfully

不行你找哥,哥来给你弄,哈哈



  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值