by
1,287 15

Calculate MySQL Database Size

Calculate MySQL Database Size: 
calc_mysql_db_size.txt
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/2581565/Calculate-MySQL-Database-Size?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
SELECT table_schema "Database_Name", SUM( data_length + index_length) / 1024 / 1024 "Database_Size_in_MB" FROM information_schema.TABLES GROUP BY table_schema;
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus