Library to read a MySQL dump?

api, mysql, python

Solution

Import into MySQL and dump using --xml seems to be the best option.

I wrote up the reasoning in this blog post: Use flag –xml when you run mysqldump

Problem

I am looking for a library that will allow me to read a mysql dump. I don't want to have to create a MySQL database and import the library and use the MySQL API. I would prefer simply a library that can parse the mysql dump format. I prefer a python library, but other scripting languages are okay.

Original source