Created
May 1, 2016 08:51
-
-
Save malcomio/dbe0d006b32d7bfc5ac63d1761c930ee 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
<?php | |
// your connection | |
mysql_connect("localhost","root","root"); | |
mysql_select_db("d6"); | |
// convert | |
$result = mysql_query("SHOW TABLES"); | |
while ($row = mysql_fetch_array($result)) { | |
foreach ($row as $key => $table) { | |
$query = "ALTER TABLE " . $table . " ENGINE=InnoDB;"; | |
mysql_query($query); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment