Skip to content

Find mysql database size from command line

by moflint on October 20th, 2011

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

From → Linux, Server, mySQL

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS