Find mysql database size from command line

Posted by & filed under Linux, mySQL, Server.

SELECT table_schema "database name", sum( data_length + index_length ) / 1024 / 1024 "Database size in MB" FROM information_schema.TABLES GROUP BY table_schema;

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Bitnami