2 lines
211 B
Bash
2 lines
211 B
Bash
|
|
#/usr/bin/env bash
|
||
|
|
mysql -e 'SELECT table_schema AS "database", ROUND(SUM(data_length + index_length) / 1024 / 1024,2) AS "size MB" FROM information_schema.TABLES GROUP BY table_schema ORDER BY `size MB` DESC;'
|