출처: http://november11tech.tistory.com/88 [Mr.november11] mysql db용량 확인 하기 :: 사월은 봄이다.

데이터 베이스별 용량 확인

select table_schema, sum((data_length + index_length)/1024/1024) MB
from information_schema.tables group by 1;



전체 용량 확인

SELECT SUM(data_length+index_length)/1024/1024 used_MB, SUM(data_free)/1024/1024 free_MB 
FROM information_schema.tables;


+ Recent posts