InnoDB working, still showing “Database server does not support InnoDB storage engine message”

后端 未结 5 644
悲&欢浪女
悲&欢浪女 2021-02-03 12:14

I\'m trying to install Magento on a local server using WAMP. InnoDB is set as the default engine but it still shows me the message:

Database server does

5条回答
  •  悲哀的现实
    2021-02-03 12:49

    Go To 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['InnoDB']) && $variables['InnoDB'] != 'NO');
    }
    

提交回复
热议问题