Created
November 19, 2014 20:07
-
-
Save meeuw/dde5e3430b2c39a25ea6 to your computer and use it in GitHub Desktop.
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
mysql --skip-column-names -Be "SELECT TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA = '$DATABASE' AND engine = 'MyISAM';"|while read TABLE ; do echo "alter table $TABLE ENGINE=InnoDB; " ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment