magento安装出现的一些问题(后续补充)

Magento安装出现的问题

1.PHP Extensions “0” must be loaded

找到app/code/core/Mage/Install/etc/config.xml
大概第70行左右的代码

<extensions>
    <pdo_mysql/>
<extensions>

改为

<extensions>
    <pdo_mysql>1pdo_mysql>
<extensions>


Database server does not support InnoDB storage engine.

找到 app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php

public function supportEngine()
{
    $variables  = $this->_getConnection()
        ->fetchPairs('SHOW VARIABLES');
    return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
}

改成如下
public function supportEngine()
{
    $variables  = $this->_getConnection()
        ->fetchPairs('SHOW ENGINES');
    return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO');
}

你可能感兴趣的:(magento)