ENGINE or TYPE table option to the CREATE TABLE statement.
CREATE TABLE table ENGINE = INNODB;CREATE TABLE table TYPE = MEMORY;
TYPE is supported as a synonym for ENGINE for backward compatibility.
ENGINE is the preferred term and TYPE is deprecated.
ENGINE or TYPE option is omitted, the default storage engine is used.
MyISAM.
--default-storage-engine or --default-table-type server startup option.
default-storage-engine or default-table-type option in the my.cnf configuration file will also change the default storage engine.
storage_engine or table_type variable.
SET storage_engine=MYISAM;SET table_type=BDB;
ALTER TABLE statement to convert a table from one storage engine to another.
ALTER TABLE table ENGINE = MYISAM;ALTER TABLE table TYPE = BDB;
Should I use transaction-safe tables or non-transaction-safe tables?
© 2007 John Michael Pierobon