magento 需要pdo_mysql, innodb支持, 假如你安装时提示innodb存储引擎不可用, 可以按以下方式修改: \app\code\core\Mage\Install\Model\Installer\Db\Mysql4.php supportEngine 方法:
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 VARIABLES');
$ret = (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
if(version_compare($this->getVersion(),'5.5.5','>=')){
$ret = true;
}
return $ret;
}