Created
May 17, 2017 02:33
-
-
Save stemwinder/739cfbc0ab0b89ca051f00fb9e9d4db0 to your computer and use it in GitHub Desktop.
Generate SQL statements to convert all database tables 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 ENGINE = 'MyISAM'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment