MySQL 5.6查看数据库的大小

 

 

 

1、

use information_schema;

2、

select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='dbname';

 

 

 

posted @ 2018-08-27 11:23  大象无形01  阅读(503)  评论(0编辑  收藏  举报