当前位置:网站首页>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 restart
Restart 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
边栏推荐
- The problem of 1 pixel border on the mobile terminal
- LeetCode 1351、统计有序矩阵中的负数
- Pikachuxss how to get cookie shooting range, always fail to return to the home page
- [PTA] l2-011 play with binary tree
- [SQL] string series 2: split a string into multiple lines according to specific characters
- MySQL进阶之数据的增删改查(DML)
- Queue template code
- Linux中,MySQL的常用命令
- Parsing methods of JSON data in C - jar and jobobject: error reading jar from jsonreader Current JsonReader item
- LeetCode 542、01 矩阵
猜你喜欢
常用60类图表使用场景、制作工具推荐
电脑越用越慢怎么办?文件误删除恢复方法
Leetcode 994, rotten orange
Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
Some basic knowledge of devexpress report development
Imitation Baidu map realizes the three buttons to switch the map mode by automatically shrinking the bottom
上海回應“面粉官網是非法網站”:疏於運維被“黑”,警方已立案
Flex layout
Linux中,MySQL的常用命令
中创存储|想要一个好用的分布式存储云盘,到底该怎么选
随机推荐
Solution: NPM err! code ELIFECYCLE npm ERR! errno 1
Analysis of the relationship between generalized Bim and CAD under the current background
Come in and teach you how to solve the problem of port occupation
MySQL数据库常识之储存引擎
Bracket matching -- [implementation of one-dimensional array]
[SQL] string series 2: split a string into multiple lines according to specific characters
MySQL进阶之常用函数
LeetCode-279-完全平方数
100天拿下11K,转岗测试的超全学习指南
go map
Preliminary understanding of cache elimination algorithm (LRU and LFU)
又一款数据分析神器:Polars 真的很强大
Unity animation creates sequence frame code and generates animationclip
6-5 string - 2 String copy (assignment) (10 points) the C language standard function library includes the strcpy function for string copy (assignment). As an exercise, we write a function with the sam
三十.什么是vm和vc?
On IRP from the perspective of source code
An error occurs when the addressable assets system project is packaged. Runtimedata is null
41. 缺失的第一个正数
BMP JPEG picture to vector image contourtrace
Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()