일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- mysql
- Microsoft Teams 제거
- 팝업 제거
- 셀프 풍천 장어구이
- ssl 자동갱신
- 백년가게
- 모듬수육
- gitlab
- mariaDB
- 리눅스
- 군포설렁탕
- 3대천왕 돈까스
- 동남집
- centos
- 에버그린돈까스
- 안양 관양동
- 양지곰탕
- 시작프로그램 변경
- 윈도우 네트워크
- Database
- let’s go encrypt
- 군포식당
- 무료 ssl
- IP충돌
- Table
- certbot
- 인덕원돈까스
- 양지설렁탕
- php70
- 속초
- Today
- Total
써리원의 이것저것
데이터베이스별 용량, 테이블별 용량 확인 본문
데이터베이스별 용량
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;
테이블별 용량
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 = 'new_gyeseong'
GROUP BY table_name
ORDER BY data_length DESC
'개발관련' 카테고리의 다른 글
strpos 문자열 포함 여부를 검사 (0) | 2018.12.04 |
---|---|
mysql 용량 확인 (0) | 2018.10.01 |
워드프레스에서 인증없이 ftp 사용하는 방법 (0) | 2018.06.22 |
mysql 에서 순서대로 order by 해서 sort 값 집어 넣기 (0) | 2018.06.22 |