Reputation: 233
We have a common database in MySQL 5.6 and many services are using that. one of the services want to migrate some tables from common database to new MySQL server 5.7. The old MySQL server continuously using by another service. The total data size is around 400GB. Is there any recommended procedure?
Upvotes: 0
Views: 348
Reputation: 41
Two Approaches
Approach: 1
replicate-db
On slave:
STOP SLAVE
RESET SLAVE
, the slave replication threads must be stopped
$> RESET SLAVEOn Master:
FLUSH LOGS
Approach:2
Try the backup method
Since the db size is 400 GB, the mysqldump won't be sufficient.
Try partial backup method using xtrabackup:
xtrabackup --backup --tables-file=/tmp/tables.txt
Once the Backup has been completed, verify and restore it into the new server version 5.7.
Reference:
np: On both approaches, make sure to check the table/mysql version compatibility [5.6 vs 5.7]
Upvotes: 1