当前位置:网站首页>MySQL storage engine
MySQL storage engine
2022-07-07 03:36:00 【Fire eye Dragon】
Concept
Database storage engine is the bottom software organization of database , Database management system (DBMS) Create with data engine 、 Inquire about 、 Update and delete data .
- Different storage engines provide different storage mechanisms 、 Indexing techniques 、 Lock level and other functions . Now many different database management systems support many different data engines .MySQL The core is the storage engine
- Users can choose different storage engines for data tables according to different needs
- have access to SHOW ENGINES command , You can see MySQL All execution engines of , We can see that the default execution engine is innoDB Support transactions , Row level locking and foreign keys .
classification
- CSV: Logically, it is the storage engine of comma pink data . Special offer to create one for each data table in the database subdirectory .csv file . This is a normal text file , Each data line takes up one text line .CSV The storage engine does not support indexes .
- BlackHole: Black hole engine , Any data written will disappear , Generally used to record binlog Do replication relay
- ERFORMANCE_SCHEMA Storage engine : The engine is mainly used for mobile database server performance parameters .
- Mrg_Myisam Merge Storage engine : It's a group. Mylsam The combination of , in other words , He will be Myisam Multiple table aggregation engines , But he has no internal data , The real data is still Myisam In the engine's table , But you can query directly 、 Delete, update, etc .
| function | MyISAM | MEMORY | InnoDB |
|---|---|---|---|
| Storage limits | 256TB | RAM | 64TB |
| Support transactions | No | No | Yes |
| Full text index support | Yes | No | No |
| Support B Tree index | Yes | Yes | Yes |
| Support hash index | No | Yes | No |
| Support cluster indexing | No | No | Yes |
| Support data indexing | No | Yes | Yes |
| Support data compression | Yes | No | No |
| Space support rate | low | N/A | high |
| Support foreign keys | No | No | Yes |
operation
Query the storage engine supported by the current database
Method :
SHOW ENGINES;
View the current default storage engine .
Method :
SHOW VARIABLES LIKE '%storage_engine%';
See what engine a table uses ( In the real results, the parameters engine The latter indicates the current storage engine )
Method :
SHOW CREATE TABLE table_name;
Specify the storage engine when creating a new table
Method :
CREATE TABLE(...) ENGINE = MYISAM;
Modify database engine
Method :
ALTER TABLE table_name ENGINE = MYISAM;
ALTER TABLE table_name ENGINE = InnoDB;
modify MySQL Default storage engine
- close MySQL service
- find MySQL In the service installation directory my.ini file
- find default-storage-engine=INNODB Change to target engine
- start-up MySQL service
边栏推荐
- 代码质量管理
- HDU 4337 King Arthur' S Knights it outputs a Hamiltonian circuit
- Huawei and Xiaomi "copy each other"
- 编译常量、ClassLoader类、系统类加载器深度探析
- R数据分析:cox模型如何做预测,高分文章复现
- 25. (ArcGIS API for JS) ArcGIS API for JS line modification line editing (sketchviewmodel)
- Install torch 0.4.1
- [leetcode] 450 and 98 (deletion and verification of binary search tree)
- codeforces每日5题(均1700)-第七天
- Room rate system - login optimization
猜你喜欢

2022.6.28

卡尔曼滤波-1

数学归纳与递归

Do you know the five most prominent advantages of E-bidding?

Principle of attention mechanism

HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother

Flink task exit process and failover mechanism

Appx code signing Guide

How to customize the shortcut key for latex to stop running

Significance and measures of source code confidentiality
随机推荐
C# Task拓展方法
Enumeration general interface & enumeration usage specification
20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
An error in SQL tuning advisor ora-00600: internal error code, arguments: [kesqsmakebindvalue:obj]
校招行测笔试-数量关系
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)
什么是 BA ?BA怎么样?BA和BI是什么关系?
23.(arcgis api for js篇)arcgis api for js椭圆采集(SketchViewModel)
Experience design details
[leetcode] 450 and 98 (deletion and verification of binary search tree)
MySQL的存储引擎
海思万能平台搭建:颜色空间转换YUV2RGB
[leetcode] 700 and 701 (search and insert of binary search tree)
枚举通用接口&枚举使用规范
Basic concepts of Huffman tree
.net中 接口可以有默认实现了
Jerry's RTC clock development [chapter]
25.(arcgis api for js篇)arcgis api for js线修改线编辑(SketchViewModel)
Jerry's question about DAC output power [chapter]
Decoration design enterprise website management system source code (including mobile source code)