Mysql크기
-
DB크기 검색프로그램/Mysql 2016. 9. 7. 10:00
[ DB크기 검색 ] -- 테이블 용량 체크SELECT COUNT(*) TABLES,CONCAT(ROUND(SUM(table_rows)/1000000,2),'M') ROWS,CONCAT(ROUND(SUM(data_length)/(1024*1024*1024),2),'G') DATA,CONCAT(ROUND(SUM(index_length)/(1024*1024*1024),2),'G') idx,CONCAT(ROUND(SUM(data_length+index_length)/(1024*1024*1024),2),'G') total_size,ROUND(SUM(index_length)/SUM(data_length),2) idxfracFROM information_schema.TABLES; -- 가장 큰 DB 찾기SELECT..