当前位置:网站首页>MYSQL 数据库查看磁盘占用情况
MYSQL 数据库查看磁盘占用情况
2022-07-01 01:01:00 【御剑长歌】
查看 mysql 每个数据库磁盘占用情况
select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size,
concat(truncate(sum(index_length)/1024/1024,2),'MB') as index_size
from information_schema.tables
group by TABLE_SCHEMA
order by data_size desc;
查看数据库实例所有数据库磁盘占用情况
select concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size from information_schema.tables;
查询指定数据库磁盘占用情况
select concat(truncate(sum(data_length)/1024/1024,2),’ MB’) as data_size from information_schema.tables where table_schema=‘information_schema’;
边栏推荐
- [deepin] common sets
- TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor. cpu() to copy the tensor to
- 短信在企业中的应用有哪些?
- 【Qt5-基础篇_1】从0开始,德天老师和你一起学习——窗口简介
- 短视频平台开发,依靠DrawerLayout实现侧滑菜单效果
- Unknown database connection database error
- Use strictmode strictmode principle (1)
- Some essential differences
- 那些一门心思研究自动化测试的人,后来怎样了?
- Compile and install oh my Zsh
猜你喜欢
Connectivity basis of Graphs
Unknown database connection database error
gin 配置文件
Service grid ASM year end summary: how do end users use the service grid?
Uniapp official component clicking item is invalid, solution
The liquor and tourism sector recovers, and Yaduo continues to dream of listing. How far is it from "the first share of the new accommodation economy"?
Institute of Microbiology, commonly used biochemical reactions in microbiological testing
亲测有效,快速创建JMeter桌面快捷方式
QT5-布局在创作中的理解应用
Service grid ASM year end summary: how do end users use the service grid?
随机推荐
Visual studio 2019 shortcut notes
zabbix如何配置告警短信?(预警短信通知设置流程)
For the sustainable development of software testing, we must learn to knock code?
Some essential differences
Call the classic architecture and build the model based on the classic
PHP converts two-dimensional array elements into key value pairs
流批一体在京东的探索与实践
Relationship between ASCII, Unicode, GBK, UTF-8
1500w播放下还藏着什么热点?B站2个未来趋势你不得错过
Basic knowledge II - Basic definitions related to sta
KS009基于SSH实现宠物管理系统
45岁程序员告诉你:程序员为什么要跳槽,太真实...
面对产业互联网的时候,甚至还用消费互联网的方式和方法去落地和实践产业互联网
visual studio 2019 快捷键备忘
微生物检测,土壤微生物的作用有哪些?
Looksrare team's "cash out" caused disturbance
[simulation] 922 Sort Array By Parity II
【Qt5-基础篇_1】从0开始,德天老师和你一起学习——窗口简介
gin_gorm
OCR的一些项目