TOP

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

 

posted @ 2019-01-31 22:28  羊驼之歌  阅读(156)  评论(0编辑  收藏  举报