'ALTER table' for all tables in a database

Posted by BassKozz on Server Fault See other posts from Server Fault or by BassKozz
Published on 2010-03-22T00:58:46Z Indexed on 2010/03/22 1:01 UTC
Read the original article Hit count: 333

Filed under:

How can I run the following for every table in a database:

ALTER table [table_name] type=innodb;

I don't want to have to manually run it for each table, but rather run it for all tables in a database. As an aside: If your curious as to why I am running this: http://bugs.mysql.com/bug.php?id=1341 & http://bugs.mysql.com/bug.php?id=1287

© Server Fault or respective owner

Related posts about mysql