2013-01-08 139 views
2

收到此错误Magento的产品的平面数据reindixing

,而在我的Magento数据库使用ssh命令

exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1005 Can't create table './admin_magento16/catalog_product_flat_4.frm' (errno: 150)' in /home/magesite/public_html/store/lib/Zend/Db/Statement/Pdo.php:228 

重建索引没有catalog_product_flat_4表中获取中存在错误

我应该需要为此做什么?

+0

你能否确认有足够的磁盘空间的网站和数据库用户具有“CREATE TABLE”特权? – benmarks

+0

@benmark是的空间和特权都很好 –

+0

所有迹象都指向了外键问题。请参阅以下文章并尝试重新索引:http://stackoverflow.com/a/5667983/833795 - 特别是关于“SHOW ENGINE INNODB STATUS”命令。此外,你可能会考虑承诺[有专门的StackExchane Magento站点的建议(链接)(http://area51.stackexchange.com/proposals/48872/magento?referrer=HFqQT3Qeb2X27y6ehRWkiw2),其中这样的问题,这将是一个更好的适合。 – benmarks

回答

0

能够与我们的团队来解决这个问题

月1日我检查数据库

检查core_store表有4个存储中创建

也catalog_product_flat_2,3,4表错过

我检查了我的管理面板只有1家商店

所以创建管理面板中添加增加了catalog_product_flat_2,3,4 然后重新索引是正常工作

欢呼:)