Tutorial for migrating data from MS Access to MySQ

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 should 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 longitude.
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.

时间: 2024-10-30 11:34:55

Tutorial for migrating data from MS Access to MySQ的相关文章

Tutorial for migrating data from MS Access to MySQL(英文的哦,要有思想准备)

access|mysql 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 u

Access 中如何使用 ADO 來压缩或修复 MS Access 文件?

access|ado|压缩 Access 中如何使用 ADO 來压缩或修复 MS Access 文件?专题地址:http://access911.net/index.asp?board=4&recordid=71FAB71E  问题: Access 中如何使用 ADO 來压缩或修复 Microsoft Access 文件?   回答: 以前使用 DAO 时,Microsoft 有提供 CompactDatabase Method 來压缩 Microsoft Access 文件,RepairDat

在VB.NET中使用MS Access存储过程 — 第二部份

access|存储过程 在VB.NET中使用MS Access存储过程 - 第二部份 作者: David Wasserman, MCP4/18/2002译者:Qianqian(thousandvb@yeah.net)5/10/2002 文章源代码: msaccess_sp2.zip介绍欢迎来到MS Access存储过程的第二部分讨论.第一部分详细地描述了如何使用ADO.NET和Visual Basic.NET在Access中创建存储过程. 第二部分将会示范如何通过数据库访问层访问在第一部分已经创

在VB.NET中使用MS Access存储过程 — 第一部份

access|存储过程 在VB.NET中使用MS Access存储过程 - 第一部份 作者: DavidWasserman,MCP 2/27/2002 译者:Qianqian(thousandvb@yeah.net)3/8/2002 文章源代码: msaccess_ sp.zip 介绍 最新发布的MS Access中,微软已经尽努力使这种产品成为一个真正全功能的关系数据库系统. 存储过程,一个通常和企业数据库系统例如SQLServer相关的功能,现在也可以在Access里找到了. 自从Acces

Add data to the Access database using ADO

access|ado Add data to the database using ADO Tools Used : Visual C# .NET This program shows how to insert data in an access database using ADO and SQL query. I have an Access 2000 database in project\bin\debug directory. My database name is mcTest.M

Spring代码通过DBCP数据库连接池访问ms access数据库的探讨

正在做一个升级项目project,project的意思就是不是application也不是platform,仅仅是一个project而已. 项目的需求之一就是对于升级前的数据,保存在access的*.mdb中的数据,继续能够访问. 我希望通过maven构建一个spring框架下的项目,那么目前的一个问题就是我的代码需要可以访问access数据库. 之前博文中,叙述了jdk8环境下java代码使用ucanaccess访问access数据库的过程. 接下来,也就是这篇博文,我希望讨论一下,在spri

用vb.net操作ms access存储过程(1)

access|存储过程 1.存储过程在access中如何运行?     不像access中的其他对象或者ms sql中可以有直观的设计界面,在access中的存储过程,没有这些,所以我们不能在access中建立他们,我将向大家展示在ado.net中如何操作他们.2.创建存储过程    我们需要使用一段sql语句来创建存储过程,我们使用事例数据库Northwind 来说明我们的例子.    一个简单的存储过程           "CREATE PROC procProductsList AS S

使用ruby与MS Access数据库交互

ruby常规访问access数据库的方法应该是使用DBI库 :   require 'dbi' DBI.connect("DBI:ADO:Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.mdb;")   可是 简单尝试之后没能成功,提示找不到驱动器ADO,懒得再试,遂找其他方法. 一番搜索之后,发现可以用WIN32OLE来访问access,写一个简单的类包装之:   require 'win32ole' class AccessDb at

LinqToSQL: Comprehensive Support for SQLite, MS Access, SQServer2000/2005

问题描述 http://www.codeproject.com/KB/linq/linqToSql_7.aspx一起研究下. 解决方案 解决方案二:可惜这3中数据库我现在都不用.不过我都用过,而且也都相当了解.我设置使用jet(access的数据库引擎库)开发过一般人认为access绝对不可能开发的大型应用.2.3年前我为了取代msde和jet,我使用过sqlite.使用一个linq产品同时兼容多种数据库,而且语法也与其它linq产品(例如linqtooracle)类似,是很有长远意义的.当然如