Skip to content

Instantly share code, notes, and snippets.

@philwinkle

philwinkle/Mysql4.diff

Last active Dec 19, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.