当前位置:网站首页>Mysql 45讲学习笔记(十三)表数据删掉一半,表文件大小不变
Mysql 45讲学习笔记(十三)表数据删掉一半,表文件大小不变
2022-07-04 06:33:00 【孔汤姆】
- 一个InnoDB表包含两部分,即表结构定义和数据
- 在MySQl8.0表结构存在.frm为后缀的文件里。
- MySQL8.0版本,则已允许把表结构定义放在系统数据表中
- 因为表结构定义占用的空间很小
参数innodb_file_per_table
表数既可以存在共享表空间里,也可以单独的文件,这个行为是参数innodb_file_per_table控制的;
- 这个参数设置为OFF表示:表的数据放在系统共享表空间,也就是数据字典
- 这个参数ON表示:每个InnoDB表数据存储在一个以.ibd为后缀的文件中。
MySQL5.6.6版本开始,他的默认值就是ON
- 一个表单独存储为一个文件更容易管理
- 你不需要这个表的时候,通过drop table命令,系统就会直接删掉这个文件
- 如果放在共享表空间上,即使表删掉了,空间也不会回收
边栏推荐
- C實現貪吃蛇小遊戲
- Learning multi-level structural information for small organ segmentation
- Fast power (template)
- [MySQL] introduction, function, creation, view, deletion and modification of database view (with exercises)
- Common JS tool Libraries
- 报错cvc-complex-type.2.4.a: 发现了以元素 ‘base-extension‘ 开头的无效内容。应以 ‘{layoutlib}‘ 之一开头。
- The solution of win11 taskbar right click without Task Manager - add win11 taskbar right click function
- Which water in the environment needs water quality monitoring
- 剑指 Offer II 038. 每日温度
- 70000 words of detailed explanation of the whole process of pad openvino [CPU] - from environment configuration to model deployment
猜你喜欢
MySQL learning notes 3 - JDBC
《ClickHouse原理解析与应用实践》读书笔记(4)
Can the out of sequence message complete TCP three handshakes
[backpack DP] backpack problem
Cloud native - SSH article that must be read on the cloud (commonly used for remote login to ECS)
ABAP:OOALV实现增删改查功能
树形dp
【问题记录】03 连接MySQL数据库提示:1040 Too many connections
C # symmetric encryption (AES encryption) ciphertext results generated each time, different ideas, code sharing
leetcode 310. Minimum Height Trees
随机推荐
Common JS tool Libraries
Functions in C language (detailed explanation)
regular expression
2022 wechat enterprise mailbox login entry introduction, how to open and register enterprise wechat enterprise mailbox?
颈椎、脚气
Review | categories and mechanisms of action of covid-19 neutralizing antibodies and small molecule drugs
uniapp 自定义环境变量
2022 where to find enterprise e-mail and which is the security of enterprise e-mail system?
Dimension and format of data
SQL injection SQL lab 11~22
Practical gadget instructions
uniapp 自定義環境變量
LayoutManager布局管理器:FlowLayout、BorderLayout、GridLayout、GridBagLayout、CardLayout、BoxLayout
746. Climb stairs with minimum cost
C语言中的函数(详解)
STM32 单片机ADC 电压计算
【问题记录】03 连接MySQL数据库提示:1040 Too many connections
QT releases multilingual International Translation
Arcpy 利用updatelayer函数改变图层的符号系统
Fast power (template)