MySQL에서 테이블의 크기를 확인하는 방법은 무엇입니까?
특정 테이블의 크기:
SELECT
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM
information_schema.TABLES
WHERE
table_schema = 'db_name'
AND table_name = 'table_name';
모든 테이블의 크기 (내림차순):
SELECT
table_schema AS `Database`,
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM
information_schema.TABLES
ORDER BY
(data_length + index_length)
DESC;
MySQL용 GUI 도구를 찾고 계신가요? TablePlus는 깔끔한 인터페이스를 갖춘 네이티브 도구로, MySQL, PostgreSQL, SQLite, Microsoft SQL Server 등 여러 데이터베이스를 동시에 관리할 수 있습니다.
Mac이 아닌 환경에서 사용하시나요? Windows용 TablePlus 다운로드.
Linux를 사용하시나요? Linux용 TablePlus 다운로드
이동 중에 데이터를 빠르게 편집하고 싶으신가요? iOS용 TablePlus 다운로드.
