mysql 查看修改存储引擎

第一种方式:

第二种方式:

 

 创建表的时候,可以通过增加ENGINE关键字设置新建表的存储引擎。例如

create table yxm(

id bigint(20) not null auto_increment,

name char(20)

) ENGINE=MyISAM DEFAULT CHARSET= gbk;

或则

create table yxm1(

id bigint(20) not null auto_increment,

name char(20)

) ENGINE=InnoDB DEFAULT CHARSET= gbk;

 

修改存在表的引擎ENGINE

alter table yxm engine = innodb;

查看表的引擎,可以用 show create table yxm \G;

 

posted @ 2017-04-15 21:33  夏天的西瓜君  阅读(282)  评论(0编辑  收藏  举报