更改数据库存储引擎
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:可以通过指定表存储引擎的方法;
声明
本人博客的所有东西,部分源于网络书籍和视频,其他的是个人的理解感悟,经过自己整理撰写成博客。
本人博客均只用于个人学习、复习,不作为商业用途,如有侵权,请联系我修改或删除。
联系邮箱:itlaowen@163.com