Merge branch 'master' of lugh.ch:/var/www/git/scripts

This commit is contained in:
root 2015-04-12 15:11:58 +02:00
commit 553fe88d83

2
mysqlstats.sh Executable file
View 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;'