Last active
January 20, 2018 07:25
-
-
Save hgati/b8a20c440b0071d91eaa5b00c188fda5 to your computer and use it in GitHub Desktop.
Fixed Magento 1.7.x Installation Error Over MySQL 5.6 (Removed a have_innodb statement)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php (revision 6ea22c9abff24da3f3f2aaed59c527ff803c02eb) | |
+++ app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php (revision 6a25c653aa5df2c4be3c69fe5131449c3b210609) | |
@@ -59,7 +59,7 @@ | |
public function supportEngine() | |
{ | |
$variables = $this->_getConnection() | |
- ->fetchPairs('SHOW VARIABLES'); | |
- return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true; | |
+ ->fetchPairs('SHOW ENGINES'); | |
+ return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment