当前位置:网站首页>mysql查询库大小
mysql查询库大小
2022-04-23 14:08:00 【阿闰】
参考:MySQL查看数据库表容量大小_傲雪星枫-CSDN博客_mysql 查看表大小
select
table_schema as '数据库',
sum(table_rows) as '记录数',
sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)',
sum(truncate(index_length/1024/1024, 2)) as '索引容量(MB)'
from information_schema.tables
group by table_schema
order by sum(data_length) desc, sum(index_length) desc;
版权声明
本文为[阿闰]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wasd986523/article/details/121874808
边栏推荐
- POI operation word template replaces data and exports word
- 关于训练过程中损失函数出现断崖式增长的问题
- Installation and use of postman pit
- 帆软中使用if else 进行判断-使用标题条件进行判断
- jsp学习1
- Nifi 快速安装及文件同步操作
- How QT designer adds resource files
- 帆软分割求解:一段字符串,只取其中某个字符(所需要的字段)
- Storage path of mod subscribed by starbound Creative Workshop at Star boundary
- JDBC详解
猜你喜欢
帆软中使用if else 进行判断-使用标题条件进行判断
容灾有疑问?点这里
帆软分割求解:一段字符串,只取其中某个字符(所需要的字段)
On the multi-level certificate based on OpenSSL, the issuance and management of multi-level Ca, and two-way authentication
Wechat applet initializes Bluetooth, searches nearby Bluetooth devices and connects designated Bluetooth (I)
Postman的安装使用及填坑心得
Recyclerview advanced use (I) - simple implementation of sideslip deletion
Call wechat customer service applet
HyperMotion云迁移助力中国联通,青云完成某央企上云项目,加速该集团核心业务系统上云进程
RecyclerView高级使用(一)-侧滑删除的简单实现
随机推荐
Call wechat customer service applet
修改ddt生成的测试用例名称
RobotFramework 之 用例标签机制
线程间控制之Semaphore使用介绍
困扰多年的系统调研问题有自动化采集工具了,还是开源免费的
Kettle -- control parsing
Can I compile the header file and source file of the template separately
FBS (fman build system) packaging
Request module
Some experience of using dialogfragment and anti stepping pit experience (getactivity and getdialog are empty, cancelable is invalid, etc.)
百度图片识别自定义实现(替代AipOcr)
Redis数据库讲解(一)
贷款市场报价利率(LPR)与贷款基准利率介绍
更改plsql工具栏的图标大小
Use of WiFi module based on wechat applet
log4j 输出日志信息到文件中
服务器日志分析工具(识别,提取,合并,统计异常信息)
Wechat applet obtains login user information, openid and access_ token
容灾有疑问?点这里
Subscription number development of wechat applet (message push)