I’ve never thought I’ll have to work again with MS Accesss database (if it can be called that way), but it appeared that we had some old (ancient!) script running on MS Access database that we had to import.
The whole idea of whirling around ODBC objects got me bored, so the idea of direct connecting of linux-windows machine using ODBC was canceled. As there’s more then one way to do it, the whole idea was brought to the level; “Why bother using MDB when we can export it?!” Few seconds search & grep in yum repositories and here you go:
sudo yum install -y mdbtools* mount -t cifs -o username=UserName,password=Password //ip-address/shared_folder /media/dir-to-store cd /media/dir-to-store cp /media/dir-to-store/access_db.mdb ~/ cd ~/ && mdb-export access_db.mdb table_name >> table_name.csv
And that’s it, taking in account that most of the MS Access database don’t use proper key relationships (or it’s just me being unlucky!), you can find pile of redundant data in the CSV file, that will actually give you the full idea of the database and you can do whatever you want with it.
