Magento新站安装可能会碰到的问题

作者:stoat 发布时间:2014-01-09 分类:技术

本文写写Magento新站安装可能会碰到的问题,Magento版本为1.7.0.2,本地服务器为Xampp v3.2.1。

PHP Extensions “0” must be loaded


app/code/core/Mage/Install/etc/config.xml (71行附近)


<extensions>
	<pdo_mysql/>
</extensions>


替换成

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

PHP Extensions “0” must be loaded.jpg

Database server does not support the InnoDB storage engine.

MySQL v5.6.1不再支持InnoDB引擎。
The InnoDB check also fails if you are running on MySQL v5.6.1 upwards as MySQL have removed the “have_innodb” variable which is used by the installer to check for InnoDB support. Instead of SHOW VARIABLES and checking the output of that the installer needs to run SHOW ENGINES....

文件app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php,63行左右

在代码


$variables  = $this->_getConnection()->fetchPairs('SHOW VARIABLES');


之后直接添加:

// Fix
if (!isset($variables['have_innodb'])) {
		$engines = $this->_getConnection()->fetchPairs('SHOW ENGINES');
		return (isset($engines['InnoDB']) && ($engines['InnoDB'] == 'DEFAULT' || $engines['InnoDB'] == 'YES'));
}
// End fix,by rich06

原文地址:Magento新站安装可能会碰到的问题 by 雪鼬博客

标签:Magento

评论已关闭