MDB Tools to export (migrate) from mdb (Microsoft Access format) to MySQL
Today I was working on how to convert an old Microsoft Access database into a MySQL database. This convertion could be obtained by first converting the tables in the mdb-file into CSV-files (Comma Separated Values) using MDB Tools and then by importing the csv-files into MySQL using phpMyAdmin.
To export a given table from a mdb-file, we type:
mdb-export db.mdb customers >> customers.csv
In my case, since I got some danish characters, I need to force mdbtools to encode everything as ISO8859-1 instead of UTF-8, which is the default. This can be done by setting the environment variable MDB_ICONV to ISO8859-1
export MDB_ICONV="ISO8859-1"
The resulting CSV-files coult be imported into MySQL using phpMyAdmin.

Another howto on database migration ms2pg – Migrate Microsoft SQL Server Database to PostgreSQL Database.
Related posts:
- Sun acquires MySQL
- Recover (Crack) a password from a Microsoft Access Database (mdb)
- Optimize MySQL for Low Memory Use
- MySQL Performance Monitoring and Optimization Tools
- NO to the Microsoft Office format as an ISO standard
- Forrester Research: Open Source Databases Are Cheaper
- MySQL Optimization and Performance Tips
- Executing SQL Statements from a Text File
- Howto: How to Reset the MySQL Root Password
- Microsoft and the OpenDocument format
Popular Related Items »
Incoming search terms
- mdb-export
- mdbtools windows
- export mdb to mysql
- MDBTools tutorial
- mdbtools howto
- mdb export
- mdbtools mysql
- using mdbtools
- mdbtools ubuntu
- import mdb to mysql
- mdbtools example
- export mdb
- mdbtools
- mdb to mysql linux
- mdbtools for windows
- mdbtools export
- mdbtools linux
- Migrate mdb to mysql
- mdb tools windows
- convert mdb to mysql
- full form of mdb
- import mdb into mysql
- mdbtools java
- mdbtools csv
- export mdb mysql
- mdb full form
- mdbtools-java
- convert mdb to mysql linux
- linux mdbtools
- migrate mdb to SQL
- open mdb ubuntu
- mdbtools mdb-export
- mysql mdbtools
- ubuntu mdbtools
- exportar mdb para mysql
- linux mdb to mysql
- ruby mdb
- mdbtools how to
- mdb to mysql
- export mdb to sql
- mdb-export all tables
- mdb mysql linux
- ubuntu mdb to mysql
- convert mdb to sql
- mdb to mysql ubuntu

Ashok said,
March 13, 2007 @ 3:57
hi,
i want to write a rails application to do this work, is it possible?
please get me some ideas
Ashok
x2l2 said,
January 31, 2008 @ 6:01
i use kexi for this and was realy quick , direct form mdb to mysql
Claus said,
February 1, 2008 @ 19:55
hello x2l2,
kexi from http://www.kexi-project.org/ seems to be a very easy and user-friendly way to convert or migrate a microsoft access database (mdb) into a MySQL database or any other open source database.
новини said,
March 11, 2008 @ 0:30
Thanks for this information. This was the thing I searched for. Is there a way to export all the tables from the .mdb at once?
de musicas said,
November 8, 2008 @ 12:24
I’m from Brazil!!!
very good!!!!
Phil said,
March 18, 2010 @ 0:30
Just wanted to note that in the latest version of MDB Tools the environment variable is MDBICONV (no underscore).