Last active
December 18, 2015 21:48
-
-
Save emre/5849778 to your computer and use it in GitHub Desktop.
converts all the table engine definitions 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
from lurker.connection import Connection | |
connection = Connection().quick_connect("friendly", "friendly", "friendly", "localhost") | |
tables = connection.get_results("SHOW TABLES") | |
for table in tables: | |
print table.get("Tables_in_mondotv") | |
connection.execute("ALTER TABLE {0} ENGINE=INNODB;".format(table.get("Tables_in_mondotv"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment