当前位置:网站首页>Mysql存储引擎
Mysql存储引擎
2022-04-22 20:22:00 【哇塞大嘴好帅(我爱大嘴网)】
Mysql存储引擎
首先我们了解下Mysql的逻辑架构 连接层->服务层->引擎层->存储层
存储引擎分配
查看Mysql支持的引擎
show ENGINE
| engine | supper | Comment | Transactions | XA | Savepoints |
|---|---|---|---|---|---|
| InnoDB | DEFAULT | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
| BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| ARCHIVE | YES | Archive storage engine | NO | NO | NO |
查看默认的存储引擎和当前的存储引擎
show variables like '%storage_engine%'
| Variable_name | Value |
|---|---|
| default_storage_engine | InnoDB |
| default_tmp_storage_engine | InnoDB |
| disabled_storage_engines | |
| internal_tmp_disk_storage_engine | InnoDB |
MyISAM和InnoDB
| 对比项 | MyISAM | InnoDB |
|---|---|---|
| 主外键 | 不支持 | 支持 |
| 事务 | 不支持 | 支持 |
| 行表锁 | 表锁 | 行锁 |
| 缓存 | 只存储缓存,不存储真实数据 | 不仅存储缓存索引,还要存储缓存和真实数据,对内存要求比较高,而且内存大小能决定效率 |
| 表空间 | 小 | 大 |
| 关注点 | 性能 | 事务 |
因为InnoDB的行表锁和缓存的解决方案所以InnoDb适合高并发操作
版权声明
本文为[哇塞大嘴好帅(我爱大嘴网)]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_40102411/article/details/124351754
边栏推荐
- Swift 扩展的使用
- Self built CA center to issue certificates for different applications of the company
- Comparison and principle summary of golang local cache selection
- 手写一个网关服务,理解更透彻!
- 【Unity】可玩广告Luna Playable插件的踩坑记录
- The most complete interpretation of redis
- ZTNA (Zero Trust Network Access)
- day29
- 【建议收藏】面试没亮点
- 7-1 C语言程序设计 实验6-3 单向链表的插入 (30 分)
猜你喜欢
随机推荐
Write a gateway service, understand more thoroughly!
IAP之boot实现
[unity] pit records of Luna playable plug-ins that can play advertisements
396. Rotation function (mathematical law + iterative method)
UML(统一建模语言)知识学习
06. Refactoring - simplifying conditional expressions
Academician Mei Hong: how to construct artificial swarm intelligence
Improving fee shot part segmentation using course supervision
金仓数据库KingbaseES服务启动方法
SCI/SSCI期刊列表已更新,这几本期刊被剔除~
Microservice architecture from 0 to 1, build the whole process record, hand-in-hand teaching, serialization
一文讲透,商业智能BI的未来形态,发展现状及前景分析|推荐收藏
Mysql, in the unique index of combination, handles the problem of null value
启动kingbase单机服务时报错:invalid value for parmeter “bindcpulist”:”0-95”
<山东大学项目实训>辐射预计算渲染及后处理降噪系统研究(一)
Conditions for judging whether plastic deformation occurs: Von Mises yield criterion
常类型的使用 常成员函数(设计一个日期类和时间)
JWT token practice and problem solving
重保战场的“排头兵”,“互联网宙斯盾”如何为城市高效布防?
微服务架构从0到1,搭建全过程记录,手把手教学,连载中...









