当前位置:网站首页>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
边栏推荐
- Cocos2d-x box2d physical engine compilation settings
- 【无标题】
- 2022年上半年HIT行业TOP50
- HDU 4337 King Arthur' S Knights it outputs a Hamiltonian circuit
- PHP lightweight Movie Video Search Player source code
- Lab1 configuration script
- 源代码保密的意义和措施
- 从0开始创建小程序
- Flink task exit process and failover mechanism
- 存储过程与函数(MySQL)
猜你喜欢

Significance and measures of source code confidentiality

概率论公式

树莓派设置静态ip

Principle of attention mechanism

Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications

Set static IP for raspberry pie

Set WiFi automatic connection for raspberry pie

U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022

Huawei and Xiaomi "copy each other"

About Tolerance Intervals
随机推荐
About Estimation Statistics
When you go to the toilet, you can clearly explain the three Scheduling Strategies of scheduled tasks
Shell programming basics
浅谈网络安全之文件上传
枚举通用接口&枚举使用规范
PHP lightweight Movie Video Search Player source code
23. (ArcGIS API for JS) ArcGIS API for JS ellipse collection (sketchviewmodel)
[swift] learning notes (I) -- familiar with basic data types, coding styles, tuples, propositions
Flutter3.0, the applet is not only run across mobile applications
哈夫曼树基本概念
input_ delay
Appx code signing Guide
[C language] question set of IX
1200.Minimum Absolute Difference
2022.6.28
Flink Task退出流程与Failover机制
Optimization of application startup speed
sshd[12282]: fatal: matching cipher is not supported: aes256- [email protected] [preauth]
CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
Vernacular high concurrency (2)