magento - SQL 错误 'core_resource' 已经存在

标签 magento

当我在本地主机上运行 mageno 时收到以下消息

Error in file: "D:\wamp\www\magentocustmod\app\code\core\Mage\Core\sql\core_setup\install-1.6.0.0.php" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'core_resource' already exists

Trace:
#0 D:\wamp\www\magentocustmod\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 D:\wamp\www\magentocustmod\app\code\core\Mage\Core\Model\Resource\Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.0.2')
#2 D:\wamp\www\magentocustmod\app\code\core\Mage\Core\Model\Resource\Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.0.2')
#3 D:\wamp\www\magentocustmod\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 D:\wamp\www\magentocustmod\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 D:\wamp\www\magentocustmod\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#6 D:\wamp\www\magentocustmod\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#7 D:\wamp\www\magentocustmod\index.php(87): Mage::run('', 'store')
#8 {main}

我怎样才能解决这个问题?

最佳答案

导致这个错误的问题有很多

我知道这个问题已经得到了回答,但我刚刚遇到了同样的问题。 OP 在此处选择的解决方案并没有解决我的问题。所以我创建了这篇博文来分析许多不同的原因并找到对我有用的解决方案。希望它对下一个遇到此错误的人有所帮助。

可能的原因

  • 安装扩展后回滚数据库
  • 升级Magento后回滚数据库
  • 在安装新的 Magento 期间

  • 针对您的情况的可能解决方案
  • 方案一:将Magento恢复到上次工作状态
  • 解决方案 2:更新此扩展的升级标志,如 abhijeet
  • 所述
  • 解决方案3:删除有问题的数据库表

  • 这篇文章是我研究的来源,Base table or view already exists

    关于magento - SQL 错误 'core_resource' 已经存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17147811/

    相关文章:

    magento - 如何获取Magento中的cms页面列表?

    Magento 连接 FTP 设置

    Magento - 隐藏按钮 "Reset Filter"和 "Search"

    php - 可配置产品,选择框 'value' 字段。洋红色

    php - Magento 事件调度/观察/修改调度对象

    php - 如何在 magento 中获取父产品 ID?

    php - 如何将多个选择中的日期插入到另一个表中?

    php - 如何在 Magento 中添加自定义字段以订购?

    Magento 2 在设置 :static-content:deploy and frontend page broken 时减少编译错误

    php - 是否可以将类别页面设为 magento 的主页?