Access to Mysql migration

19 Jul

Steps necessary to migrate Access to Mysql.

This is done by:

1. Create a database in Mysql
2. Install MyODBC on the machine (from
3. Create a DSN for the database and make sure it can connect (there is a ‘test connection’ button in the DSN creation process
4. Open MS Access DB, right click on each table and ‘export’ it to the DSN created in step 3.
5. Add indexes to columns in Mysql (probably easiest thru phpmyadmin)
6. Run script to convert all tables to InnoDB and create Foreign Keys (see attached example).
7. Rename original tables and link the Access front end (File->Get External Data->Link Tables) to the Mysql tables

Example script that converts myIsam tables to InnoDb and adds Foreign Keys:
Download file


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: