Mysql数据库占用空间查询

2020-04-30  本文已影响0人  TechLogs
use information_schema;
select concat(round(sum(data_length/1024/1024),2),'MB') as data_size from tables;
select concat(round(sum(data_length/1024/1024),2),'MB') as data_size from tables where table_schema='my_db1';
select concat(round(sum(data_length/1024/1024),2),'MB') as data_size from tables where table_schema='my_db1' and table_name='user_info';
上一篇 下一篇

猜你喜欢

热点阅读