5.2 数据库引擎

引擎

mysaim

MySQL 数据库 默认引擎
  不支持事务
  查询速度更快一些
  只支持 表锁

create table t1(id int) engine = myisam


innodb

  支持事务
  支持行锁 加 表锁

create table t1(id int) engine = innodb

 

配置文件中指定

/etc/my.cnf
[mysqld]
default-storage-engine=INNODB
innodb_file_per_table=1
原文地址:https://www.cnblogs.com/shijieli/p/10344352.html