Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers

up vote 7 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.

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

Yes, you can

default-storage-engine=InnoDB

default-table-type=InnoDB

share|improve this answer
add comment

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?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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