add mysql stats script
This commit is contained in:
parent
8cd6159c4a
commit
72b95957f3
1 changed files with 2 additions and 0 deletions
2
mysqlstats.sh
Executable file
2
mysqlstats.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#/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;'
|
||||
Loading…
Add table
Add a link
Reference in a new issue