data_length + index_length1 MySQL / MariaDB DB 사용 용량 확인. MySQL / MariaDB 데이터베이스 사용 용량 조회 SELECT table_schema "Database", -- Database 명 ROUND(SUM(data_length + index_length)/ 1024 / 1024, 1) "MB" FROM information_schema.TABLES GROUP BY table_schema; MySQL / MariaDB 전체 데이터베이스 사용 용량 조회 SELECT SUM(data_length + index_length)/ 1024 / 1024 used_MB, SUM(data_free)/ 1024 / 1024 free_MB FROM information_schema.tables; 2021. 9. 9. 이전 1 다음