Simple tips. Sometimes we want a summery of size consumed by our databases in MySQL engine. Here is a simple SQL snippet for that. This will list all databases that current MySQL user can access and list their size in megabyte.

[gist id=9788940]

Tested it on MySQL, on other databases, may also work. Hope it helps you.




What's on your mind?


28 Comments