【发布时间】:2013-01-20 19:20:33
【问题描述】:
我想知道我的 MySQL 数据库使用了多少空间,以便选择一个网络主机。
我找到了命令SHOW TABLE STATUS LIKE 'table_name',所以当我进行查询时,我会得到这样的结果:
Name | Rows | Avg. Row Length | Data_Length | Index Length
---------- ---- --------------- ----------- ------------
table_name 400 55 362000 66560
- 数字四舍五入。
那么我有 362000 或 400*362000 = 144800000 字节的数据用于此表吗? 索引长度是什么意思? 谢谢!
【问题讨论】:
-
你有 362000 + 66560。Data_Length + 索引长度
-
这个页面会给你准确的答案rathishkumar.in/2017/12/…
标签: mysql database size byte storage