Skip to content
Wizard Commerce

Wizard Commerce

Magento / Adobe Commerce Specialists

  • HOME
  • About Us
  • Services
  • Contact
  • Blog

Category: MySQL

Posted on 5th Feb 2025

How to calculate the size of a database in MySQL

To display a breakdown of the sizes of all the tables in your database: 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; If you'd just like to see the total, simply use a SUM() function like this: …

Continue reading "How to calculate the size of a database in MySQL"

Create a website or blog at WordPress.com
  • Subscribe Subscribed
    Wizard Commerce

    Have a WordPress.com account? Log in now.

  • Wizard Commerce
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar