MySQL 데이터베이스 용량 확인

Jmnote (토론 | 기여)님의 2016년 5월 24일 (화) 23:09 판 (새 문서: ;MySQL 데이터베이스 용량 확인 ==database별 용량 확인== <source lang='console'> mysql> SELECT table_schema, SUM((data_length+index_length)/1024/1024) MB FROM informatio...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
MySQL 데이터베이스 용량 확인

1 database별 용량 확인

mysql> SELECT table_schema, SUM((data_length+index_length)/1024/1024) MB FROM information_schema.tables GROUP BY 1;
+--------------------+---------------+
| table_schema       | MB            |
+--------------------+---------------+
| hello              |  254.17479706 | 
| information_schema |    0.00390624 | 
| jmnote             | 9217.30721378 | 
| mysql              |    0.52754019 | 
| test               |    0.04794693 | 
| wordpress          |  320.35048007 | 
+--------------------+---------------+
7 rows in set (0.33 sec)

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}