SELECT concat(table_schema,'.',table_name), concat(round(table_rows/1000000,2),'M') rows, concat(round(data_length/(1024*1024*1024),2),'G') DATA, concat(round(index_length/(1024*1024*1024),2),'G') idx, concat(round((data_length+index_length)/(1024*1024*1024),2),'G') total_size, round(index_length/data_length,2) idxfrac FROM information_schema.TABLES where table_schema='데이터베이스명' order by data desc;
'MySQL, MariaDB' 카테고리의 다른 글
replication (0) | 2018.06.26 |
---|---|
CentOS7 nginx, mariadb10, php-fpm 설치 (0) | 2017.01.05 |
특정 이름으로 시작하는 테이블 한꺼번에 삭제 drop multiple table like prefix in mysql (0) | 2016.12.01 |
MAMP mysql upgrade to 5.7.16 osx (0) | 2016.11.17 |
MySQL CAST (0) | 2016.05.12 |