Configuration guides for IT Administrators

How to get size of each table of a MySQL Database

How to get size of each table of a MySQL Database

This SQL query provides you with list of all tables with largest size in a MySQL database that is executed.

SELECT table_schema AS `Database`,table_name AS `Table`,ROUND((
(
data_length + index_length
)/1024/1024),2
) `Size in MB`
FROM information_schema.TABLES
ORDER BY (
data_length + index_length
)DESC;
LIMIT 0, 30

 

Categories:

One response to “How to get size of each table of a MySQL Database”

  1. 1x bet avatar

    [4731]1x bet Official Login | App Download at Slots sa Pilipinas,Gamitin ang 1x bet para sa pinakamabilis na cash out at iba’t ibang online casino slots ph. Alamin din kung paano maglaro ng baccarat. Mag-sign up na rito! visit: 1x bet

Leave a Reply

Your email address will not be published. Required fields are marked *

Lucas Brey

I’m Lucas Brey, a travel blogger sharing practical guides, hidden gems, and honest tips from the road. Follow along for smart itineraries, great food finds, and stories worth bookmarking.

Tags