Magento 1.9.2.2从本地迁移到登台环境,一切正常只有一个扩展 - magentopros_productAttachments_attachment无效,
a:5:{i:0; s:215:" SQLSTATE [42S02]:未找到基表或视图:1146表' magento.magentopros_productAttachments_attachment'不存在,查询是:SELECT COUNT(*)FROM
magentopros_productAttachments_attachment
ASmain_table
&#34 ;; i:1; s:5550:"#0 / var / www /public/lib/Varien/Db/Statement/Pdo/Mysql.php(110):Zend_Db_Statement_Pdo-> _execute(Array)
但是这些表实际上存在,而且在core_resource表中,请参见截图。
我尝试删除了那些表和值并重新安装了扩展程序,但它有效,但如果在转移到生产环境时表中有大量数据会怎样。
任何人都可以建议明确解决此问题,任何帮助将不胜感激。
答案 0 :(得分:0)
任何良好的扩展都不应该发生这种情况。如果您遇到此类问题,您仍可以转储与该特定扩展相关的表和数据,并在部署到Live时运行它。
步骤 1.在生成之前使用数据表转储(magentopros_productattachments_attachment和magentopros_productattachments_attachment_product)。
将整个数据库部署到实时网站。
请勿更改扩展名的core_resouce表数据。
删除表magentopros_productattachments_attachment和magentopros_productattachments_attachment_product。
在Live site中运行SQL转储。
答案 1 :(得分:0)
magentopros_productAttachments_setup
表格中删除(core_resource
)扩展程序设置文件。它会起作用。