1.在mysql客户端,输入以下命令
mysql>show variables like 'have_%';
图中显示 have_innodb yes,说明此mysql 数据库是支持innodb的。
2.创建innodb 的表
create table test (id bigint(20),name varchar(50)) type = innoDB;
3.查看表的属性
扫描二维码关注公众号,回复:
1358790 查看本文章
![](/qrcode.jpg)
show table status from innodb_test;
![](http://dl.iteye.com/upload/attachment/0072/6955/eb76cf2b-2f23-3d0e-8c37-25fd9805d098.jpg)
可以看到这张表的engine使用的是innodb
4.innodb和myisam互转
alter table test type = myisam;
再查看属性,发现engine已经换成myisam了