基表或视图已存在:1050表' sales_flat_order'已经存在

时间:2014-05-22 16:48:56

标签: php magento

我在localhost XAMPP中安装magento一次又一次地使用不同的日志记录号来获取此错误

请回复我第一次学习magento ..

  

文件错误:" C:\ xampp \ htdocs \ Projects \ magento-downloader-1.7.0.0 \ app \ code \ core \ Mage \ Sales \ sql \ sales_setup \ install-1.6.0.0.php&# 34; - SQLSTATE [42S01]:基表或视图已存在:1050表' sales_flat_order'已存在

跟踪:

  

#0 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')

     

#1 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\code\core\Mage\Core\Model\Resource\Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.0.8')

     

#2 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\code\core\Mage\Core\Model\Resource\Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.0.8')

     

#3 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()

     

#4 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()

     

#5 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()   #6 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\app\Mage.php(684): Mage_Core_Model_App->run(Array)

     

#7 C:\xampp\htdocs\Projects\magento-downloader-1.7.0.0\index.php(87): Mage::run('', 'store')

     

#8 {main}

错误日志记录编号:1003391393

1 个答案:

答案 0 :(得分:1)

我认为您应该删除magento数据库'sales *'中的所有表,从sales关键字开始删除所有表。

base table already exist

magento upgrade