- I have a MariaDB server - 5.5.60
- I have a database
xyzthat has both MyISAM and InnoDB tables - The majority of the tables are MyISAM but in this database in particular, the data is mainly in InnoDB tables.
If I run du -sh /var/lib/mysql/xyz I get 11M
If I run mysqldump -u root -pXXX "xyz" > xyz.sql the resulting file is 371M
I can use the xyz.sql file to restore the database just fine. With other databases I have had all MyISAM tables and never noticed much of a difference in size.
Why is the .sql file so much larger than the actual database directory? Is there something I should do differently when using mysqldump with a database with InnoDB tables?