Convert InnoDB Tables to MyISAM

I have been trying to optimize my 256 MB slice from slicehost. One of the strategies is to not use the InnoDB SQL engine for your tables and instead use MyISAM. If you need transactions or foreign key support you should not do this.

I came across this snippet:

SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=MyISAM;') FROM information_schema.tables WHERE engine = 'InnoDB';

It seems to have worked. Maybe I’ll provide an article or tutorial in the future on benchmarking your slice.

Are you a Git user? Let me help you make project management with Git simple. Checkout Gitpilot.

-JP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.