使用MySQL5.6安裝Magento時提示innodb 不支持

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;  :)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章