How can default to INNODB for every table to create in the future?

link|improve this question

feedback

2 Answers

up vote 2 down vote accepted

Specify default_table_type in the my.cnf as such:

default_table_type = INNODB

Oddly enough, this may not be documented in MySQL's documentation. I have been using this configuration option for a long time and verified its performance again after not being able to find official reference material.

link|improve this answer
feedback

...be sure to look at innodb_file_per_table as well, by default it's 0 and will create all your tables in one huge datafile that will never go down in size, only up (even if you delete data - it's their design). Only by having your InnoDB tables in separate files can you shrink their sizes by 'optimize table' and such.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.