Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.

share|improve this answer

Your Answer


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.