{"id":358,"date":"2014-09-16T21:42:22","date_gmt":"2014-09-17T02:42:22","guid":{"rendered":"http:\/\/bourbonnaisservices.com\/blog\/?p=358"},"modified":"2014-09-16T21:42:22","modified_gmt":"2014-09-17T02:42:22","slug":"how-to-get-the-sizes-of-your-databases-in-mysql","status":"publish","type":"post","link":"https:\/\/bourbonnaisservices.com\/blog\/2014\/09\/how-to-get-the-sizes-of-your-databases-in-mysql\/","title":{"rendered":"How to get the sizes of your databases in MySQL"},"content":{"rendered":"<p>Here it is courtesy of S. Prakash found at <a title=\"http:\/\/forums.mysql.com\/read.php?108,201578,201578\" href=\"http:\/\/forums.mysql.com\/read.php?108,201578,201578\" target=\"_blank\">http:\/\/forums.mysql.com\/read.php?108,201578,201578<\/a><\/p>\n<p>SELECT table_schema &#8220;Data Base Name&#8221;,<br \/>\nsum( data_length + index_length ) \/ 1024 \/ 1024 &#8220;Data Base Size in MB&#8221;,<br \/>\nsum( data_free )\/ 1024 \/ 1024 &#8220;Free Space in MB&#8221;<br \/>\nFROM information_schema.TABLES<br \/>\nGROUP BY table_schema ;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here it is courtesy of S. Prakash found at http:\/\/forums.mysql.com\/read.php?108,201578,201578 SELECT table_schema &#8220;Data Base Name&#8221;, sum( data_length + index_length ) \/ 1024 \/ 1024 &#8220;Data Base Size in MB&#8221;, sum( data_free )\/ 1024 \/ 1024 &#8220;Free Space in MB&#8221; FROM information_schema.TABLES GROUP BY table_schema ;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,1],"tags":[],"_links":{"self":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts\/358"}],"collection":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/comments?post=358"}],"version-history":[{"count":1,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts\/358\/revisions"}],"predecessor-version":[{"id":359,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts\/358\/revisions\/359"}],"wp:attachment":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/media?parent=358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/categories?post=358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/tags?post=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}