Magento:在localhost上安装问题

时间:2014-05-29 03:41:13

标签: mysql magento install

我正在尝试在localhost上安装magento,我已经成功完成了几十次,但这次我面临着奇怪的问题。这些是我到目前为止采取的步骤:

  1. 全新安装XAMPP,
  2. magento安装的新副本
  3. 将示例内容的媒体文件添加到magento目录
  4. 使用示例内容mysql文件创建了新数据库。
  5. 当我尝试安装时,前3个步骤顺利(询问姓名,时区,语言选择等),然后输入数据库详细信息,下一步会出现此错误:

    There has been an error processing your request
    

    错误页面上显示的网址是:

    http://localhost/gfashion/index.php/install/wizard/installDb/
    

    我检查了错误日志,并打印出此错误:

    ::1 - - [29/May/2014:08:16:40 +0500] "GET /gfashion/errors/report.php?id=1501102562&skin=default HTTP/1.1" 503 1866 "http://localhost/gfashion/index.php/install/wizard/installDb/" "Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0"
    

    以下是文件夹var / report:

    中文件150110256的内容
    a:5:{i:0;s:210:"Error in file: "D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\sql\core_setup\mysql4-upgrade-0.8.18-0.8.19.php" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'core_variable' already exists";i:1;s:976:"#0 D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
    #1 D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\Model\Resource\Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.8.18', '1.6.0.4')
    #2 D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\Model\Resource\Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.8.18', '1.6.0.4')
    #3 D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
    #4 D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
    #5 D:\xampp1\htdocs\gfashion\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
    #6 D:\xampp1\htdocs\gfashion\app\Mage.php(684): Mage_Core_Model_App->run(Array)
    #7 D:\xampp1\htdocs\gfashion\index.php(87): Mage::run('', 'store')
    #8 {main}";s:3:"url";s:45:"/gfashion/index.php/install/wizard/installDb/";s:11:"script_name";s:19:"/gfashion/index.php";s:4:"skin";s:7:"default";}
    

    任何解决方案?

1 个答案:

答案 0 :(得分:0)

尝试各种方法后没有成功,我重新安装了Magento的另一个新副本,并且工作正常。问题显然是由于我不知道的原因,有些文件没有正确解压缩。

如果有人遇到相同或类似的问题,我希望这会有所帮助。