当前位置:网站首页>Differences between MySQL storage engine MyISAM and InnoDB
Differences between MySQL storage engine MyISAM and InnoDB
2022-07-07 12:57:00 【LC181119】
1.MyISAM Storage engine
MyISAM Engine features
- Unsupported transaction
- Table level locking
- Reading and writing block each other , Write cannot read , You can't write when you read
- Cache index only
- Foreign key constraints are not supported
- Clustered index is not supported
- Read data faster , Less resources
- I won't support it MVCC( Multi version concurrency control mechanism ) High concurrency
- Crash recovery is poor
- MySQL5.5.5 The default database engine before
- read-only ( Or write less )
- Small table ( Long time repair operation is acceptable )
- tbl_name.frm Table format definition
- tbl_name.MYD Data files
- tbl_name.MYI Index file
2.InnoDB engine
- Row-level locks
- Support transactions , Suitable for dealing with a large number of short-term Affairs
- Read and write blocking is related to transaction isolation level
- Cacheable data and indexes
- Support clustering index
- Crash resilience is better
- Support MVCC High concurrency
- from MySQL5.5 Full text index is supported after
- from MySQL5.5.5 Start with the default database engine

- all InnoDB The data and index of the table are placed in the same tablespace
Data files :ibdata1, ibdata2, Store in datadir Defined directoryTable format definition :tb_name.frm, Store in datadir Define the corresponding directory of each database
- Each form uses a single table space to store the data and index of the table
The two types of files are placed in a separate directory corresponding to each database
Data files ( Store data and index ):tb_name.ibd
Table format definition :tb_name.frm
边栏推荐
- 红杉中国完成新一期90亿美元基金募集
- Aosikang biological sprint scientific innovation board of Hillhouse Investment: annual revenue of 450million yuan, lost cooperation with kangxinuo
- Day21 multithreading
- visual stdio 2017关于opencv4.1的环境配置
- 怎样重置火狐浏览器
- .Net下極限生產力之efcore分錶分庫全自動化遷移CodeFirst
- Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
- ICLR 2022 | pre training language model based on anti self attention mechanism
- 【从 0 开始学微服务】【00】课程概述
- Creation and assignment of graphic objects
猜你喜欢
[爬虫]使用selenium时,躲避脚本检测
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
Four functions of opencv
Session
Common knowledge of one-dimensional array and two-dimensional array
What if does not match your user account appears when submitting the code?
2022 examination questions and online simulation examination for safety production management personnel of hazardous chemical production units
2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
图像像素读写操作
2022危险化学品生产单位安全生产管理人员考题及在线模拟考试
随机推荐
Day-20 file operation, recursive copy, serialization
2022危险化学品生产单位安全生产管理人员考题及在线模拟考试
博文推荐|Apache Pulsar 跨地域复制方案选型实践
Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
ICLR 2022 | pre training language model based on anti self attention mechanism
[crawler] avoid script detection when using selenium
事务的七种传播行为
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
Find ID value MySQL in string
【从 0 开始学微服务】【01】什么是微服务
Realize a simple version of array by yourself from
Common text processing tools
【无标题】
关于 appium 启动 app 后闪退的问题 - (已解决)
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
[binary tree] delete points to form a forest
【无标题】
Design and implementation of communication protocol