DB/MYSQL
DB 용량 구하는 방법
SELECTcount(*) NUM_OF_TABLE,table_schema,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.TABLESGROUP BY table_schemaORDER ..
2015. 9. 17. 09:15