Database DB1 is estimated to be 48 KB, while the .sql file I dumped to is 4.7998 KB - almost exactly 10% the size. Regardless of the size drop, note that the Database size was estimated without the index, so that doesn't seem to explain it.
I tried several different methods of size estimation and they report the same.
MariaDB [information_schema]> SELECT table_schema
-> AS "Database",
-> SUM(data_length + index_length) AS "Size (Bytes)",
-> ROUND(SUM(data_length + index_length) / 1024, 5) AS "Size (KB)",
-> ROUND(SUM(data_length + index_length) / 1024 / 1024, 5) AS "Size (MB)",
-> ROUND(SUM(data_length + index_length) / 1024 / 1024 / 1024, 5) AS "Size (GB)"
-> FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+--------------+-----------+-----------+-----------+
| Database | Size (Bytes) | Size (KB) | Size (MB) | Size (GB) |
+--------------------+--------------+-----------+-----------+-----------+
| DB1 | 65536 | 64.00000 | 0.06250 | 0.00006 |
| information_schema | 180224 | 176.00000 | 0.17188 | 0.00017 |
| mysql | 746169 | 728.68066 | 0.71160 | 0.00069 |
| performance_schema | 0 | 0.00000 | 0.00000 | 0.00000 |
+--------------------+--------------+-----------+-----------+-----------+
MariaDB [(none)]> SELECT
-> table_schema AS "Database",
-> SUM(data_length) AS "Size (Bytes)",
-> ROUND(SUM(data_length) / 1024, 5) AS "Size (KB)",
-> ROUND(SUM(data_length) / 1024 / 1024, 5) AS "Size (MB)",
-> ROUND(SUM(data_length) / 1024 / 1024 / 1024, 5) AS "Size (GB)"
-> FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+--------------+-----------+-----------+-----------+
| Database | Size (Bytes) | Size (KB) | Size (MB) | Size (GB) |
+--------------------+--------------+-----------+-----------+-----------+
| DB1 | 49152 | 48.00000 | 0.04688 | 0.00005 |
| information_schema | 90112 | 88.00000 | 0.08594 | 0.00008 |
| mysql | 576185 | 562.68066 | 0.54949 | 0.00054 |
| performance_schema | 0 | 0.00000 | 0.00000 | 0.00000 |
+--------------------+--------------+-----------+-----------+-----------+
...
MariaDB [information_schema]> SELECT
-> table_schema AS "Database",
-> SUM(data_length) AS "Size (Bytes)",
-> SUM(data_length) / POWER(1024,1) AS "Size (KB)",
-> SUM(data_length) / POWER(1024,2) AS "Size (MB)",
-> SUM(data_length) / POWER(1024,3) AS "Size (GB)"
-> FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+--------------+----------------+--------------------+-----------------------+
| Database | Size (Bytes) | Size (KB) | Size (MB) | Size (GB) |
+--------------------+--------------+----------------+--------------------+-----------------------+
| DB1 | 49152 | 48 | 0.046875 | 0.0000457763671875 |
| information_schema | 90112 | 88 | 0.0859375 | 0.00008392333984375 |
| mysql | 576185 | 562.6806640625 | 0.5494928359985352 | 0.0005366140976548195 |
| performance_schema | 0 | 0 | 0 | 0 |
+--------------------+--------------+----------------+--------------------+-----------------------+
me@MyMint:~$ mysqldump -u root -p --databases DB1 > DB1_dataBU_$(date +%Y%m%d).sql
Enter password:
me@MyMint:~$ du -sb DB1_dataBU_20190506.sql
4915 DB1_dataBU_20190506.sql
me@MyMint:~$ ls -lh DB1_dataBU_20190506.sql;
-rw-rw-r-- 1 jason jason 4.8K May 6 12:22 DB1_dataBU_20190506.sql
Either the estimation is off, the dump is missing 90% of it's content/data, or I need to be put straight on how mysqldump works.