For mysql...is there a way to set it so that every table that gets created is innodb?

link|improve this question

feedback

3 Answers

up vote 4 down vote accepted

Edit your my.cnf file to set following in the [mysqld] section (or the section your MySQLd reads):

default-storage-engine=InnoDB

After restarting the MySQL server, InnoDB should be the new default. To verify this, run the SQL statement:

SHOW ENGINES;

...The InnoDB line should be indicated as DEFAULT.

Note that the default-storage-engine option is just an alternate name for default-table-type.

link|improve this answer
@lockie i couldnt find my.cnf file img691.imageshack.us/img691/524/mysqln.jpg plz help me... – Pandiya Chendur Apr 12 '10 at 5:33
feedback

Yes, you can

default-storage-engine=InnoDB

default-table-type=InnoDB

link|improve this answer
feedback

I want to my Clustered Node to work like when I create a new database It won't get replicated. Normally after having the above mentioned attribute set 'default-storage-engine=INNODB', When I create a table without mentioning the engine it is not replicated to the other node, that is fine. But Why does the database gets created on other nodes?

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.