Skip to content

Instantly share code, notes, and snippets.

@philwinkle
Last active December 19, 2015 12:28
Show Gist options
  • Save philwinkle/5954728 to your computer and use it in GitHub Desktop.
Save philwinkle/5954728 to your computer and use it in GitHub Desktop.
MySQL 5.6 Innodb defaults patch
diff --git a/app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php b/app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php
index bc482b5..ce55834 100644
--- a/app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php
+++ b/app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php
@@ -60,6 +60,10 @@ class Mage_Install_Model_Installer_Db_Mysql4 extends Mage_Install_Model_Installer_Db_Abstract
{
$variables = $this->_getConnection()
->fetchPairs('SHOW VARIABLES');
+ if (substr($variables['version'], 0, 3) == '5.6') {
+ return true;
+ } else {
return (!isset($variables['have_innodb']) || $variables['have_innodb'] != 'YES') ? false : true;
}
+ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment