The MySQL database organizes data in optimized data structures. For general data, a B-tree is used and geographical data is stored in an R-tree. A data “dump” is the process of transferring the data from these special tree structures into a linear representation, known as the “dump”.
Dumping the tree data creates a text file which can be stored and moved between systems using conventional methods. This is required to create a backup from a MySQL database. So, what is contained in a MySQL dump exactly?
A MySQL dump contains SQL statements which reflect the contents of the database before dumping. The dump can be imported on another database installation. In this case, the SQL statements are exported and the database is rebuilt step by step. After importing, the database should contain the same data in the same structure as prior to dumping.
The complete process from creating the MySQL backup to importing the dump results in the following scheme: