phpmyadmin – Upon my shoulder http://www.uponmyshoulder.com/blog // TODO: insert witty tagline Tue, 20 Jun 2017 20:25:30 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 Get database size in phpMyAdmin http://www.uponmyshoulder.com/blog/2010/get-database-size-in-phpmyadmin/ http://www.uponmyshoulder.com/blog/2010/get-database-size-in-phpmyadmin/#comments Wed, 28 Apr 2010 19:19:56 +0000 http://www.uponmyshoulder.com/blog/?p=205 It looks like phpMyAdmin doesn’t include a way to see how much space takes the MySQL database. I found that a bit weird, but hey, if phpMyAdmin doesn’t do it, let’s cut to the chase and go SQL!

The most straightforward way to get your database size from phpMyAdmin is the following SQL query:

SELECT table_schema "Data Base Name",
sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB"
FROM information_schema.TABLES GROUP BY table_schema ;

Originally from the MySQL forums.

]]>
http://www.uponmyshoulder.com/blog/2010/get-database-size-in-phpmyadmin/feed/ 13