After restoring data using BR, the table’s statistics are found to be missing. For example, querying information_schema.tables shows data_length and table_rows both as 0. Has anyone encountered this issue?
By default, BR does not back up the MySQL database. After you perform a full backup with BR and then delete the table, the statistics under the MySQL database are also gone. When you restore it with BR, the table data comes back, but the statistics are zero and need to be recollected.
The expert above is right, BR does not back up the MySQL database. I have done something similar; I deleted a few tables under the MySQL database, and then I couldn’t recover them.
BR backs up the mysql database depending on the version, and restoring the mysql database is an experimental feature that is currently not fully developed.
But this doesn’t allow restore stats – because the table IDs of the stats backed up are old table IDs, we need more efforts to rewrite them to make them take effect after the restoration.