如何改变数据库存储引擎

更改数据库存储引擎

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:可以通过指定表存储引擎的方法;

猜你喜欢

转载自blog.csdn.net/weixin_43033426/article/details/88891198