当前位置:网站首页>【mysql学习笔记21】存储引擎
【mysql学习笔记21】存储引擎
2022-06-25 09:32:00 【yqs_281876918】
查询存储引擎
利用select create table xxx;查看建表语句,即可看到使用了什么引擎
指定存储引擎
create table xxx(…) engine=INNODB;
查看存储引擎列表
show engines;
innodb引擎
介绍
innodb是一种兼具可靠与性能的引擎,也是现在mysql的默认引擎
特点
1.DML语句支持ACID模型,支持事务
2.行级锁
3.支持外键约束
文件格式
.idb
存储表结构(frm、sdi)、数据和索引
参数:innodb_file_per_table 用于指定是否每张表对应一个idb文件
逻辑存储结构

MyISAM引擎
介绍
mysql早期默认引擎
特点
1.不支持事务
2.不支持外键
3.表锁
4.访问速度快
文件存储
.sdi 存储表结构
.myi 存储索引
.myd 存储数据
Memory引擎
介绍
Memory引擎的表数据存在内存中,而不是文件中
特点
1.内存存放
2.hash索引
3.表锁
文件存储
.sdi 存储表结构
其余数据均存在内存里
三大引擎对比

边栏推荐
- Analysis on the thinking of 2022 meisai C question
- Japanese online notes for postgraduate entrance examination (9): composition template
- 富时A50开户什么地方安全
- On the underlying index principle of MySQL
- Notes on key words in the original English work biography of jobs (II) [chapter one]
- 【无标题】**数据库课设:三天完成学生信息管理系统**
- Voiceprint Technology (IV): Engineering deployment of voiceprint recognition
- Voiceprint Technology (II): Fundamentals of audio signal processing
- Neo4jdesktop (neo4j desktop version) configures auto start (boot auto start)
- Object. Can defineproperty also listen for array changes?
猜你喜欢

Mapping mode of cache

Matplotlib decision boundary drawing function plot in Matplotlib_ decision_ Boundary and plt Detailed explanation of contour function

How can games copied from other people's libraries be displayed in their own libraries

Data-driven anomaly detection and early warning of 21 May Day C

【OpenCV】—输入输出XML和YAML文件

Question B of the East China Cup: how to establish a population immune barrier against novel coronavirus?

nodejs 使用Express框架demo

Make a skylearn high-dimensional dataset_ Circles and make_ moons

【OpenCV】—离散傅里叶变换

RMB 3000 | record "tbtools" video, make a friend and get a cash prize!
随机推荐
Atguigu---01-scaffold
RMB 3000 | record "tbtools" video, make a friend and get a cash prize!
一、单个神经元网络构建
Is it safe to open an account on the compass?
《乔布斯传》英文原著重点词汇笔记(二)【 chapter one】
二、训练fashion_mnist数据集
Voiceprint Technology (V): voiceprint segmentation and clustering technology
SQL高级
SQL advanced
WebGL发布之后不可以输入中文解决方案
《乔布斯传》英文原著重点词汇笔记(四)【 chapter two 】
Jmeter中的断言使用讲解
证券开户风险大吗,安全靠谱吗?
2022 meisai question a idea sharing
4、 Convolution neural networks
Use Navicat to compare data differences and structure differences of multi environment databases, and automatic DML and DDL scripts
行业春寒回暖,持续承压的酒店企业于何处破局?
How can games copied from other people's libraries be displayed in their own libraries
Cassava tree disease recognition based on vgg16 image classification
Voiceprint Technology (II): Fundamentals of audio signal processing