I am looking for tools/methods to read(if possible also write) data from
.mdb files which are copied into my linux box with python. I require
this for coercing existing legacy data into MySQL with some change in
the data structure. The ultimate aim is to replace an application
developed in VB with django
Thanks in advance
Regards Ganesh
Jeff
Thanks for all your responses. All the suggested methods are suitable
for one time migration. Actually I am planning to migrate from VB to
django in phases. So I may have to update data many times. i.e first
export a few tables (doing some re-arrangement). After it settles down,
export few more tables, as well as the new data entered in the phase I
tables through the VB app. Basically one-time-export-of-tables will not
work for me. So, if only I can access 'ms access' tables through python,
I can write a few functions to check if the data has already reached
MySQL table, if not add it. The actual .mdb files are in a Windows box,
so if the setup will require a Windows box it is okay, but it will be
convenient if I can copy those .mdb files to my linux box, do the
initial developement and testing and finally point the functions to the
original .mdb files.
In short I am looking for a way to read(/write) tables in a .mdb file,
through python.
Any pointers?
Thanks for your time once again
Ganesh
Second, as an *extremely* useful tool for this sort of thing, may I
suggest Navicat for MySQL on Windows? The Windows version allows you
to import .mdb files and do data transfers directly into MySQL, with
some mapping. It may not afford you the entire power of Python for
manipulating the data, but it will give you a very nice leg up on the
process. Not free, but not too expensive, and there is an evaluation
version so you can see what it will do for you.
If you need to script data transfers and manipulations for multiple
runs, then the ADODBAPI module will work well. For figuring out what
you need to do, Navicat will be a big help, and if your manipulations
are not extensive, will possibly be entirely sufficient. Plus, it
makes a really nice MySQL admin tool (that being its primary purpose).
2008/6/9 M.Ganesh <ganesh...@gmail.com>:
Thanks for the pointers
Regards Ganesh