Tutorial for migrating data from MS Access to MySQL
One of the main reasons I started FreeSQL.org is to open up newbie users to the wide world of enterprise-level database access. one of the most common questions I'm asked is "how do I upload my data from my Access database to my MySQL database? "This is far easier than you think and is done using an often overlooked feature of Microsoft Access. namely, the ability to import, export, and link to non-Access data sources. for now lets just consider MySQL.
The first step is to provide the capability for your windows system to communicate with the remote MySQL server. this is done using MyODBC. if you don't have it installed already, get it from here.
Recently I had to move a database of zipcodes to my MySQL server. I will list the steps I took to migrate this data.
In the windows 98 control panel (or equivalent in WinME, Windows 2000, or XP) open the ODBC Data Source Administrator. You will want to create a new System data source.
Choose "Add", then select the MySQL driver. you shoshould see the following form. give it a meaningful DSN name, in my case I called it remoteZipCodes. the DSN is how you will identify this connection when you want to use it from another application. fill in the rest of the necessary information correctly. one tip, MySQL is case sensistive. make sure you get the username, password, and database case correct.
Here is my source data. A single Access table containing zipcodes by city and state, along with their latitude and longpolling.
We want to "export" our data to the remote MySQL server. Select the table you want to export and choose "file/save as/export... "From the main Access menu, then choose" to an external file or database ".
The "save table" dialog box will then open and by default will try to export your table to another Access MDB. you change the format of the destination by choosing from the "save as type" combo box. in our case we want to select "ODBC Databases ()". it is probably at the very bottom of the list.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.