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.
Related tutorial – MySQL
On this page, we offer quick access to a list of tutorials related to MySQL.
Tutorial MySQL – Check the size of all Databases
Access the MySQL command-line.
Check the size of all MySQL Databases.
Here is the command output:
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.
Check the size of a specific MySQL Database.
Here is the command output:
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.