I am using Percona's xtrabackup to take backup of my online databases. Is there a way to convert the backup database files into a SQL dump similar to a backup created using mysqldump ?


Do you mean it's taking a file level copy of /var/lib/mysql (or the Windows equivalent)?

If that's the case, restore the files somewhere and change the MySQL data directory to where you have restored /var/lib/mysql to, e.g. in /etc/my.cnf (or the Windows equivalent):


Then restart MySQL and you'll be using your recovered databases which you can use mysqldump against.

If you're using InnoDB tables you may need to read through this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.