当前位置:网站首页>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命令,系统就会直接删掉这个文件
- 如果放在共享表空间上,即使表删掉了,空间也不会回收
边栏推荐
- thread priority
- Notes and notes
- How does apscheduler set tasks not to be concurrent (that is, execute the next task after the first one)?
- buuctf-pwn write-ups (8)
- InputStream/OutputStream(文件的输入输出)
- Software keywords and process information intercepted by Golden Shield video player
- Learn about the Internet of things protocol WiFi ZigBee Bluetooth, etc. --- WiFi and WiFi protocols start from WiFi. What do we need to know about WiFi protocol itself?
- 运算符<< >>傻瓜式测试用例
- webrtc 快速搭建 视频通话 视频会议
- MySQL installation and configuration
猜你喜欢
剑指 Offer II 038. 每日温度
Download kicad on Alibaba cloud image station
[Android reverse] function interception (CPU cache mechanism | CPU cache mechanism causes function interception failure)
Learning multi-level structural information for small organ segmentation
Sleep quality today 78 points
C實現貪吃蛇小遊戲
C实现贪吃蛇小游戏
分布式CAP理论
测试岗的中年危机该如何选择?是坚守还是另寻出路?且看下文
Notes and notes
随机推荐
R统计绘图-随机森林分类分析及物种丰度差异检验组合图
Bicolor case
C语言中的排序,实现从小到大的数字排序法
Detailed explanation of common APIs for component and container containers: frame, panel, scrollpane
C language - Blue Bridge Cup - Snake filling
leetcode 310. Minimum Height Trees
24 magicaccessorimpl can access the debugging of all methods
4G wireless all network solar hydrological equipment power monitoring system bms110
剑指 Offer II 038. 每日温度
2022.7.2-----leetcode. eight hundred and seventy-one
11. Dimitt's law
ABCD four sequential execution methods, extended application
Matlab remainder
Functions in C language (detailed explanation)
[openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx
2022 where to find enterprise e-mail and which is the security of enterprise e-mail system?
Layoutmanager layout manager: flowlayout, borderlayout, GridLayout, gridbaglayout, CardLayout, BoxLayout
手动对list进行分页(参数list ,当前页,页面大小)
Appium基础 — APPium安装(二)
2022 Xinjiang's latest eight members (Safety Officer) simulated examination questions and answers