首页 > 技术文章 > 如何改变数据库存储引擎

laowenBlog 2018-02-02 16:22 原文

更改数据库存储引擎
1:查看系统支持的存储引擎 > show engines;
2:查看表使用的存储引擎:
> show table status from `databases_name` where name = 'table_name';
> show create table `table_name`;
3:修改表引擎
> alter table `table_name` engine = 'InnoDB';
> show create table `table_name`;
4:通过配置文件指定存储引擎
default-storage-engine = MYISAM // 可以通过配置选项修改存储引擎
5:可以通过指定表存储引擎的方法;

推荐阅读