MySQL/mariadb Table 및 Index Size 확인


MySQL/mariadb Table 및 Index Size 확인

Mysql기반 테이블과 인덱스 사이즈 확인방법에 대해 알아보겠습니다. test 결과 row 건수는 정확하게 일치하지는 않는거 같습니다. -- 테이블 및 전체 인덱스 사이즈 확인 mysql> select table_schema, table_name, -> round(sum(data_length)/1024/1024,2) as 'table Size(Mb)', -> round(sum(index_length)/1024/1024,2) as 'index Size(Mb)', -> max(table_rows) as rows_number, -> max(auto_increment) as auto_increment_value -> from information_schema.tables -> where table_schema ..


원문링크 : MySQL/mariadb Table 및 Index Size 확인