還是不做核心破解!你應該安裝前輕輕覆蓋安裝,型號:
在app/code/local/Company/InstallBugfix/etc/config.xml
粘貼此:
<?xml version="1.0"?>
<config>
<modules>
<Company_InstallBugfix>
<version>0.1.0</version>
</Company_InstallBugfix>
</modules>
<global>
<models>
<installbugfix>
<class>Company_InstallBugfix_Model</class>
</installbugfix>
<install>
<rewrite>
<installer_db_mysql4>Company_InstallBugfix_Model_Installer_Db_Mysql4</installer_db_mysql4>
</rewrite>
</install>
</models>
</global>
</config>
,並按照app/code/local/Company/InstallBugfix/Model/Installer/Db/Mysql4.php
:
<?php
class Company_InstallBugfix_Model_Installer_Db_Mysql4 extends Mage_Install_Model_Installer_Db_Mysql4
{
/**
* Check InnoDB support
*
* @return bool
*/
public function supportEngine()
{
$supportsEngine = parent::supportEngine();
if ($supportsEngine) {
return true;
}
$variables = $this
->_getConnection()
->fetchPairs('SHOW ENGINES');
return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO');
}
}
並啓用擴展。好處是,如果mysql版本較舊,那麼舊的驗證仍然正確。
您使用的是哪個版本的mysql? – 2013-03-15 23:03:10
5.6.10 - 大約20分鐘前從字面上下載 – 2013-03-15 23:04:52
剛剛確認,剛剛創建了以下測試表: + --------------- + ------ ------ -------------------------------------------------- -------------------------------------------------- ---- + |表|創建表| + --------------- + -------------------------------- -------------------------------------------------- ---------------------------- + | mystoragetest | CREATE TABLE'mystoragetest'( 'tester' int(1)NOT NULL DEFAULT'0' )ENGINE = InnoDB DEFAULT CHARSET = latin1 | + --------------- + ----- – 2013-03-15 23:05:09