Would you like to learn how to check the size of a MySQL database in Megabytes? In this tutorial, we are going to show you how to use the MySQL command-line to verify a Database size on a computer running Ubuntu Linux.

• Ubuntu 18.04
• Ubuntu 19.04
• MySQL 8.0.18

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Tutorial MySQL - Check the size of all Databases

Access the MySQL command-line.

Copy to Clipboard

Check the size of all MySQL Databases.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, a table showing the Size of all MySQL databases was presented.

Tutorial MySQL - Check the size of a specific Databases

Access the MySQL command-line.

Copy to Clipboard

Check the size of a specific MySQL Database.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, we verified that the MySQL database named DATABASE-A has 142.5 Megabytes.

Keep in mind that you need to replace the database name DATABASE-A by your desired database name.