Mysql storage engine

database storage engine

MyISAM
BLACKHOLE
CSV
MEMORY
ARCHIVE
InnoDB

Starting from 5.6, the default database engine is InnoDB
InnoDB is fast

View the datasheet for the engine

mysql> show table status\G
mysql> show create table 表名;

Modify the default engine of the database

vi /etc/my.cnf
[mysqld]
default-storage-engine=MyISAM|InnoDB等

View database supported engines

mysql> show engines;

Specify the engine when creating the data table

mysql> create table aling(id int not null auto_increment primary key,name varchar(10) not null)engine=MyISAM;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324735047&siteId=291194637