prefix; $lenpre = strlen($pre); $tablesstatus = $wpdb->get_results("SHOW TABLE STATUS"); print "
Nr. | "; print "Tabellen | "; print "Datensätze | "; print "Daten | "; print "Index | "; print "Daten & Index | "; print "Überhang | "; foreach($tablesstatus as $key=>$tablestatus) { if(substr($tablestatus->Name,0,$lenpre) != $pre) continue; print "|
---|---|---|---|---|---|---|---|
".($key+1)." | "; print "".$tablestatus->Name." | "; print "".number_format($tablestatus->Rows,0,',','.')." | "; print "".number_format($tablestatus->Data_length/1024,0,',','.')." kb | "; print "".number_format($tablestatus->Index_length/1024,0,',','.')." kb | "; print "".number_format(($tablestatus->Data_length + $tablestatus->Index_length)/1024,0,',','.')." kb | "; if($tablestatus->Data_free > 0) { print ""; print " ".number_format($tablestatus->Data_free/1024,2,',','.')." kb"; print " | "; } else { print "-- | "; } $row_usage += $tablestatus->Rows; $data_usage += $tablestatus->Data_length; $index_usage += $tablestatus->Index_length; $total_usage += $tablestatus->Data_length + $tablestatus->Index_length; $overhead_usage += $tablestatus->Data_free; echo '
Gesamt | "; print ""; print " | ".number_format($row_usage,0,',','.')." | "; print "".number_format($data_usage/1024,0,',','.')." kb | "; print "".number_format($index_usage/1024,0,',','.')." kb | "; print "".number_format($total_usage/1024,0,',','.')." kb | "; print "".number_format($overhead_usage/1024,2,',','.')." kb | "; print "|
Es werden ausschließlich die WORDPRESS-Tabellen angezeigt, die zum Blog '".get_option('blogname')."' gehören. |