Categoría: Base de Datos

Calcular el tamaño de las tablas en MySQL mediante Query

Para saber todo lo que pesan nuestras base de datos seria esta consulta SELECT count(*) TABLES ,concat(round(sum(table_rows)/1000000,2),’K’) 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) idxfrac FROM information_schema.TABLES; SELECTcount(*) TABLES,concat(round(sum(table_rows)/1000000,2),’K’)…

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO