Contents

조회 수 666 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

1. 테이블별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임)

SELECT 
    table_name,
    table_rows,
    round(data_length/(1024*1024),2) as 'DATA_SIZE(MB)',
    round(index_length/(1024*1024),2) as 'INDEX_SIZE(MB)'
FROM information_schema.TABLES
where table_schema = '데이터베이스이름'
GROUP BY table_name 
ORDER BY data_length DESC 
LIMIT 10;


2. Database 별 사이즈 확인 (쿼리 시점에 정확한 사이즈는 아니지만, 참고할 만한 데이터임)

SELECT 
    count(*) NUM_OF_TABLE,
    table_schema,concat(round(sum(table_rows)/1000000,2),'M') rows,
    concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA,
    concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx,
    concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size,
    round(sum(index_length)/sum(data_length),2) idxfrac
FROM information_schema.TABLES
GROUP BY table_schema
ORDER BY sum(data_length+index_length) DESC LIMIT 10;


?

  1. [php] substr() 한글 자를 때 깨짐 방지

    Date2014.01.09 CategoryDevelop Byhooni Views20367
    Read More
  2. [ios] UIWebView 쿠키 유지

    Date2014.01.16 CategoryDevelop Byhooni Views11708
    Read More
  3. [ios] UIWebView에서 NSURLRequest에 Cookie 실어 보내기

    Date2014.01.16 CategoryDevelop Byhooni Views14861
    Read More
  4. [linux] CentOS 6.x Cati 설치 (yum)

    Date2014.01.17 CategorySystem/OS Byhooni Views48596
    Read More
  5. [js] 주소표시줄 URL 읽어오기 (변경까지)

    Date2014.01.21 CategoryDevelop Byhooni Views1
    Read More
  6. [ios] 네트워크 인디케이터(NetworkActivityIndicator) 작동

    Date2014.01.24 CategoryDevelop Byhooni Views12493
    Read More
  7. [ios] iOS 6.0 이상 회전 하기 (이전 버전과 비교 변경 부분)

    Date2014.01.27 CategoryDevelop Byhooni Views34188
    Read More
  8. [ios] NSString 간단한 정규식 사용법

    Date2014.01.28 CategoryDevelop Byhooni Views18223
    Read More
  9. [c] 64bit 머신에서 inet_ntoa() 사용시 Segment fault 대처 방법법

    Date2014.02.08 CategoryDevelop Byhooni Views14237
    Read More
  10. [php] XE 관리자 IP대역 설정 오류 해결법

    Date2014.02.10 CategoryDevelop Byhooni Views10780
    Read More
  11. [sql] 쿼리로 문자열 검색해서 일괄 치환하기

    Date2014.02.13 CategoryDatabase Byhooni Views9975
    Read More
  12. [html] SVG(Scalable Vector Graphics) 간단 정리

    Date2014.02.13 CategoryDevelop Byhooni Views8836
    Read More
Board Pagination Prev 1 ... 66 67 68 69 70 71 72 73 74 75 ... 98 Next
/ 98