Linux Giornaliero
venerdì 5 agosto 2016
mysql: elenco delle tabelle con spazio occupato
Per sapere quale tabella sta occupando più spazio nel vostro mysql:
SELECT
table_name AS `Table` , round( ((data_length + index_length) /1024 /1024 ) , 2) `Size in MB`
FROM information_schema.TABLES
ORDER BY `Size in MB` DESC
Nessun commento:
Posta un commento
Post più recente
Post più vecchio
Home page
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento