Created
November 22, 2017 16:56
-
-
Save sergeliatko/beec8e2514dc34549e0ece991037cef2 to your computer and use it in GitHub Desktop.
Generates SQL to alter all tables from a database (DBName) to InnoDB engine.
This file contains hidden or 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_name, " ENGINE=InnoDB;" ) | |
| FROM information_schema.tables | |
| WHERE engine = 'MyISAM' | |
| AND table_schema = 'DBName'; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just replace
DBNamewith the name of your database