一:mysql常见引擎:
Myisam , Innodb, Memory, CSV 。
二:常用mysql两个搜索引擎的区别:
1、MyISAM:它是基于传统的ISAM类型,ISAM是Indexed Sequential Access Method (有索引的顺序访问方法) 的缩写,它是存储记录和文件的标准方法。支持全文索引,不支持事务,表锁。
2、InnoDB:支持事务安全的引擎,支持外键、行锁、事务,最早不支持全文索引,mysql 5.6版本后开始支持。如果有大量的操作(update和insert),建议使用InnoDB,如果是以查(select)为主,推荐Myisam。在mysql5.5以后,默认使用InnoDB搜索引擎。
三:关于引擎的几个操作。
以student表为例
1.创建表前指定: create table student(
id int not null auto_increment primary key;
name varchar(10) not null
) engine = innodb charset=utf8 ;
2.查看引擎:show create table student ;
3.修改引擎:alter table student engine = myisam / innodb ;