当前位置:网站首页>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命令,系统就会直接删掉这个文件
- 如果放在共享表空间上,即使表删掉了,空间也不会回收
边栏推荐
猜你喜欢

ORICO ORICO outdoor power experience, lightweight and portable, the most convenient office charging station

R statistical mapping - random forest classification analysis and species abundance difference test combination diagram
![[March 3, 2019] MAC starts redis](/img/ff/88638fcdc8d24dc268781c224e8195.jpg)
[March 3, 2019] MAC starts redis

4G wireless all network solar hydrological equipment power monitoring system bms110

uniapp 自定義環境變量

C language exercises (recursion)

JSON Web Token----JWT和傳統session登錄認證對比

Overview of convolutional neural network structure optimization
![[Android reverse] function interception (CPU cache mechanism | CPU cache mechanism causes function interception failure)](/img/7e/02bb01480257cd56537914a7247733.jpg)
[Android reverse] function interception (CPU cache mechanism | CPU cache mechanism causes function interception failure)

Cloud native - SSH article that must be read on the cloud (commonly used for remote login to ECS)
随机推荐
[Android reverse] function interception (CPU cache mechanism | CPU cache mechanism causes function interception failure)
[untitled]
《ClickHouse原理解析与应用实践》读书笔记(4)
STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储
Review | categories and mechanisms of action of covid-19 neutralizing antibodies and small molecule drugs
C语言练习题(递归)
Arcpy 利用updatelayer函数改变图层的符号系统
Appium基础 — APPium安装(二)
InputStream/OutputStream(文件的输入输出)
实用的小工具指令
采用中微BATG135实现IIC数据/指令交互
Sleep quality today 78 points
Realize IIC data / instruction interaction with micro batg135
what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!
Fundamentals of SQL database operation
Dimension and format of data
After the festival, a large number of people change careers. Is it still time to be 30? Listen to the experience of the past people
2022.7.3-----leetcode. five hundred and fifty-six
4G wireless all network solar hydrological equipment power monitoring system bms110
Matlab remainder