当前位置:网站首页>Mysql database common sense storage engine
Mysql database common sense storage engine
2022-04-23 20:45:00 【Jan York】
Storage engine classification

show engines;
This command can view the data engine of the database , You can see InnoDB Is the default engine .
The command runs in addition to the terminal , You can also run in the query database visualizer .

and ,( I am a 5.7 edition ) We can see that in the database , There are nine storage engines .
Namely **InnoDB、MRG_MYISAM、MEMORY、BLACKHOLE、MyISAM、CSV、ARCHIVE、PERFORMANCE_SCHEMA、FEDERATED**.
Set the default engine
SHOW VARIABLES LIKE 'default_storage_engine%'
This statement can query the current default database engine .
default_storage_engine% Indicates the default database storage engine .

If we want to modify the default storage engine , We can modify my.ini/my.cnf File implementation ( Don't suggest !).
add to
default-storage-engine= Database engine name (INNODB/MYISAM).sudo service mysql restartRestart with command
mysql.
Use the following statement to modify the database temporary The default storage engine for :
SET default_storage_engine=< Storage engine name >
But when you restart the client again , The default storage engine is still InnoDB.
Specify the engine when creating the table
CREATE TABLE Table name (
-- Field omission
) ENGINE = MyISAM;
**ENGINE = Engine type ** Followed by the statement under construction , You can specify the engine .
版权声明
本文为[Jan York]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232039375806.html
边栏推荐
- MySQL 存储过程和函数
- Singleton mode
- 100天拿下11K,转岗测试的超全学习指南
- How to use PM2 management application? Come in and see
- 深入探究ASP.NET Core读取Request.Body的正确方式
- bounding box iou
- Case of the third day of go language development fresh every day project - news release system II
- LeetCode 1351、统计有序矩阵中的负数
- pikachuxss如何获取cookie靶场,返回首页总是失败
- GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
猜你喜欢

Matlab: psychtoolbox installation

"Meta function" of tidb 6.0: what is placement rules in SQL?

What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer

Leetcode 542, 01 matrix

Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem

Flex layout

Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case

go defer

GO語言開發天天生鮮項目第三天 案例-新聞發布系統二

go interface
随机推荐
Go language development Daily Fresh Project Day 3 Case - Press Release System II
黑客的入侵方式你知道几种?
Selenium 显示等待WebDriverWait
Bracket matching -- [implementation of one-dimensional array]
[stack and queue topics] - sliding window
上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
Bash script learning -- for loop traversal
MySQL基础之写表(创建表)
Leetcode 709, convert to lowercase
bounding box iou
I JS deep copy and shallow copy
MySQL进阶之数据的增删改查(DML)
Create vs project with MATLAB
LeetCode 709、转换成小写字母
Leetcode 994, rotten orange
Summary and effect analysis of methods for calculating binocular parallax
Unity solves Z-fighting
Thirty What are VM and VC?
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
LeetCode 74、搜索二维矩阵