MySQL - List database size


With the select below you can see the size of MySQL databases.
 
SELECT        @@hostname as `Server`,
t.table_schema AS "Database",
SUM(t.data_length + t.index_length) / 1024 / 1024 AS "Size (MB)"
FROM information_schema.TABLES t
where t.table_schema not in ('information_Schema', 'test', 'mysql', 'performance_schema')
GROUP BY table_schema ;

Comments

Popular posts from this blog

Impacket-master - psexec for linux

Openedge (Progress) - List transaction cache