Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgati/b8a20c440b0071d91eaa5b00c188fda5 to your computer and use it in GitHub Desktop.
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)
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