views:

247

answers:

2

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.

+1  A: 

I came across sqldump.py while looking for something similar - might be of use...

Dave Everitt
True, but this is only for wikipedia SQL dumps. A useful script for another task.
Joseph Turian
+1  A: 
Joseph Turian
A useful write-up (BTW you're right - I was in fact looking for MediaWiki imports when I stumbled on the above).
Dave Everitt