1 person found this helpful
If you are using the transportable tables spaces you should be able to simply copy them from instance to instance.
Have you considered using the clone plugin which is extremely quick and designed for such cases?
This is using 5.7, so unfortunately does not use the clone process. Transportable tablespaces are not ideal, as there are hundreds of files.
The database is about 1TB, so takes days for logical import.
I tried copying IBDATA and all replicated databases, but afterwards started getting errors relating to the innodb_table_stats, innodb_index_stats. And although the relay logs increase, exec_master_log_pos does not increase and no errors are apparent in the logfile.
I would rather just do a cold copy of the database, but I do not see details on creating a slave from a physical copy of master.
So my error here.
Once I overwrote all data (all the data directory, tmp folders etc), with the exception of the cnf file, this works fine. Xtrabackup is excellent for a fast binary copy of the prod db.