- How can I determine type of mysql database : whether it is InnoDB or MyISAM ?
- How can I convert MyISAM to InnoDB or vice-versa ?
views:
270answers:
3
A:
Regarding converting myIsam to Innodb
http://dev.mysql.com/doc/refman/5.0/en/converting-tables-to-innodb.html
Wbdvlpr
2009-10-28 15:42:46
+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
2009-10-28 15:43:50
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
2009-10-28 16:46:57
A:
Michal M
2009-10-28 15:45:03