app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php
打開以上文件 找到如下代碼,添加一個判斷即可
/** * Check InnoDB support * * @return bool */ public function supportEngine() { $variables = $this->_getConnection() ->fetchPairs('SHOW VARIABLES'); //添加如下判斷即可 if ($variables['storage_engine'] == 'InnoDB') return true; return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : t rue; }
因爲mysql 5.6的變量描述有變化,所以導致Magento安裝過程中 檢測失敗
簡記備忘 :)
如果想更簡單的解決,也可以直接移除其他代碼 直接 return true; :)