Magento install complains about missing InnoDB when it is available

前端 未结 7 644
遇见更好的自我
遇见更好的自我 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:09

    Or don't do a core-hack! You should override the Installer-Model softly before Installation:

    Paste this in your app/code/local/Company/InstallBugfix/etc/config.xml:

    
    
        
            
                0.1.0
            
        
        
            
                
                    Company_InstallBugfix_Model
                
                
                    
                        Company_InstallBugfix_Model_Installer_Db_Mysql4
                    
                
            
        
    
    

    And following in app/code/local/Company/InstallBugfix/Model/Installer/Db/Mysql4.php:

    _getConnection()
                         ->fetchPairs('SHOW ENGINES');
            return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO');
        }
    }
    

    And enable the extension. The advantage is, that the old validation is still correct, if the mysql-version is older.

提交回复
热议问题