Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question

2 Answers 2

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):

datadir=/tmp/restore/var/lib/mysql

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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