I am trying to find a backup/restore procedure for a MySQL 8 DB with 400M+ Rows in InnoDB tables. MySQLdump takes days and therefore I am trying this now:
- Mount a LVM volume on the DB Folder
- Create LVM snapshot
- Restore on other server from Snapshot
The files are all there, but MySQL will not start:
2021-07-04T15:48:14.415660Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-07-04T15:48:14.637407Z 1 [ERROR] [MY-012209] [InnoDB] Multiple files found for the same tablespace ID:
2021-07-04T15:48:14.637473Z 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 196 = ['test/SUM_stats_cat_d.ibd', 'website/wp_actionscheduler_actions.ibd']
Aparently there is more then the simple Folder of the database to copy. The local server holds other DBs which seem to be in conflict to the import.
Is there a way to get around this? If not, what would be a better strategy for backup/recovery?