1 *存储引擎管理*
1.1 *查看数据库支持的存储引擎*
show engines
1.2 *查看数据库当前使用的存储引擎*
就是默认引擎是什么。
show variables like ‘%storage_engine%’
也可以在MySQL配置文件中查看。 windows - my.ini。 Linux - my.cnf
1.3 *查看数据库表所用的存储引擎*
show create table table_name
1.4 *创建表指定存储引擎*
create table table_name (column_name column_type) engine = engine_name
1.5 *修改表的存储引擎*
alter table table_name engine=engine_name
1.6 *修改默认的存储引擎*
在MySQL配置文件中修改下述内容:
default-storage-engine=INNODB
MySQL配置文件:
windows系统 - MySQL安装目录/my.ini (5.7版本my.ini文件在数据目录中。 C:/programdata/MySQL Server 5.7/mysql/)
linux系统 - /etc/my.cnf