tags:

views:

270

answers:

3
  • How can I determine type of mysql database : whether it is InnoDB or MyISAM ?
  • How can I convert MyISAM to InnoDB or vice-versa ?
A: 

Regarding converting myIsam to Innodb

http://dev.mysql.com/doc/refman/5.0/en/converting-tables-to-innodb.html

Wbdvlpr
+6  A: 

To determine the storage engine being used by a table, you can use show table status. The Engine field in the results will show the database engine for the table. Alternately, you can select the engine field from information_schema.tables:

select engine 
from   information_schema.tables 
where  table_schema = 'schema_name'
   and table_name = 'table_name'

You can change between storage engines using alter table:

alter table the_table engine = InnoDB;

Where, of course, you can specify any available storage engine.

James McNellis
I am trying alter table the_table engine = InnoDB; but it appears that engine is not changed, is it because I do not have right or what might be the reason for it ?
Rachel