Created
April 28, 2014 15:58
-
-
Save spin0us/11376298 to your computer and use it in GitHub Desktop.
mMySQL : Convert all table from MyISAM to InnoDB
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
SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' ENGINE=InnoDB;') | |
FROM information_schema.tables | |
WHERE table_schema NOT IN ('mysql','test','performance_schema','information_schema') | |
AND ENGINE='MyISAM' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment