I have a full backup created by xtrabackup. Now I want to restore this backup to another machine which already has an instance of percona mysql installed.
While trying to restore with xtrabackup --copy-back --target-dir=/data/backups/
, I get an error saying /var/lib/mysql
isn’t empty. So is it okay to just delete /var/lib/mysql
and perform the restore? Is there any other better way? Thanks!