Magento install complains about missing InnoDB when it is available

前端 未结 7 603
遇见更好的自我
遇见更好的自我 2020-12-07 12:44

During installation, Magento produces the following error:

Database server does not support the InnoDB storage engine.

I\'ve fix

相关标签:
7条回答
  • 2020-12-07 13:34

    Line 59 of the file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php

    Replace:

    public function supportEngine()
     {
        $variables  = $this->_getConnection()
            ->fetchPairs('SHOW VARIABLES');
        return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
    }    
    

    with this:

    public function supportEngine()
    {
     /*   
         $variables  = $this->_getConnection()
            ->fetchPairs('SHOW ENGINES');
         return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true; 
    */
        return 1;
    }
    
    0 讨论(0)
提交回复
热议问题