mysql数据库容量查询
发表于:2024-10-17 作者:千家信息网编辑
千家信息网最后更新 2024年10月17日,1.查看所有数据库容量大小Mysql">select table_schema as '数据库',sum(table_rows) as '记录数',sum(truncate(data_length/1
千家信息网最后更新 2024年10月17日mysql数据库容量查询
1.查看所有数据库容量大小
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.tablesgroup by table_schemaorder by sum(data_length) desc, sum(index_length) desc;
2.查看所有数据库各表容量大小
selecttable_schema as '数据库',table_name as '表名',table_rows as '记录数',truncate(data_length/1024/1024, 2) as '数据容量(MB)',truncate(index_length/1024/1024, 2) as '索引容量(MB)'from information_schema.tablesorder by data_length desc, index_length desc;
3.查看指定数据库容量大小
例:查看mysql库容量大小selecttable_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.tableswhere table_schema='mysql';
4.查看指定数据库各表容量大小
例:查看mysql库各表容量大小select table_schema as '数据库',table_name as '表名',table_rows as '记录数',truncate(data_length/1024/1024, 2) as '数据容量(MB)',truncate(index_length/1024/1024, 2) as '索引容量(MB)'from information_schema.tableswhere table_schema='smartmonitor'order by data_length desc, index_length desc;
容量
数据
数据库
大小
索引
库容
库容量
查询
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
工作编排工具 个人服务器
淘宝服务器一直繁忙
宝山区工商数据库系统研发好处
至强E2126支持服务器内存吗
工控网络安全市场
软件开发模型项目
莱芜移动城管软件开发系统
amd 公司软件开发 待遇
林州市网络安全教育平台
网络技术原理及应用实验报告
美团电瓶车跨服务器骑行
襄阳服务器
sip软件开发
oracle数据库左连接
dns服务器怎么设置默认网关
PDO断开数据库
电子商务表数据库设计
数据库十六进制字段
广饶县网络安全和信息化
广东省软件开发哪家好
软件开发之免费的画图软件
WIMAX网络安全绘画
打印服务器怎么添加第二个打印机
暗黑2绑定后还能改服务器吗
关于网络安全的作文怎么写
好的数据库品牌
智慧网络安全平台
网络安全法重点条款
软件开发专业难度大吗
ci服务器