nugawiki

./categories/server

MariaDB 테이블 용량 확인

업데이트 2026-07-21 조회수

DB별 용량

SELECT
    table_schema AS 'Database',
    ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) AS 'Size(MB)'
FROM information_schema.tables
WHERE table_schema NOT IN ('sys', 'mysql', 'information_schema', 'performance_schema')
GROUP BY table_schema
ORDER BY 2 DESC;

./comments