[MySQL] database table용량 확인 > db

본문 바로가기
사이트 내 전체검색

db

[MySQL] database table용량 확인

페이지 정보

작성자 서방님 댓글 0건 조회 141회 작성일 12-07-02 15:23

본문

MySQL table 용량 확인


[DB 용량확인]

SELECT table_schema "Database Name", 

            SUM(data_length + index_length) / 1024 / 1024 "Size(MB)" 

FROM information_schema.TABLES 

GROUP BY table_schema;


[table 용량확인]

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_name = '테이블명'  ;

댓글목록

등록된 댓글이 없습니다.

Total 464건 11 페이지
게시물 검색

회원로그인

접속자집계

오늘
91
어제
84
최대
1,347
전체
154,462
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.