如何将 Access 2010 数据库 (.accdb) 导入 MySQL

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9340457/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 12:10:57  来源:igfitidea点击:

How to import Access 2010 database (.accdb) into MySQL

mysqldatabaseimportms-access

提问by Shaman

How to import Access 2010 database (.accdb) into MySQL. For example, I want to import my Product inventory database.accdb fully, how can I do that easily. Thanks.

如何将 Access 2010 数据库 (.accdb) 导入 MySQL。例如,我想完全导入我的产品清单 database.accdb,我该如何轻松地做到这一点。谢谢。

回答by Kamil

There are many ways.

有很多方法。

You can export Microsoft Access tables to CSV file and import that file in MySQL (little complicated but fastest way).

您可以将 Microsoft Access 表导出为 CSV 文件并在 MySQL 中导入该文件(有点复杂但最快的方式)。

You can install MySQL ODBC driver and connect MySQL tables in access

可以安装 MySQL ODBC 驱动程序并在 access 中连接 MySQL 表

You can save/export .accdb database to old access format and find tutorial for old version.

您可以将 .accdb 数据库保存/导出为旧的访问格式并查找旧版本的教程。

回答by Ivan Cachicatari

Tools to export MS Access to MySQL don't export tables with relationships, you can use these steps to include MS Access table relationships:

将 MS Access 导出到 MySQL 的工具不导出带有关系的表,您可以使用以下步骤来包含 MS Access 表关系:

Converting MS Access to MySQL with relationships

使用关系将 MS Access 转换为 MySQL

enter image description here

在此处输入图片说明

回答by Sopid3

Try sqlyogto Import data from any ODBC compliant data source. Could be a better option or install mysql odbc driver and connect to the DB.

尝试使用sqlyog从任何 ODBC 兼容数据源导入数据。可能是更好的选择,或者安装 mysql odbc 驱动程序并连接到数据库。

回答by LiveSource

If you are on Mac OS or linux, mdbtools is excellent. With just a few lines in the command-line you can convert .accdb or .mdb files to .sql and other formats ready to import into your mysql database. This tutorial explains the process very clearly https://www.codeenigma.com/community/blog/using-mdbtools-nix-convert-microsoft-access-mysql

如果您使用的是 Mac OS 或 linux,mdbtools 非常棒。只需在命令行中输入几行,您就可以将 .accdb 或 .mdb 文件转换为 .sql 和其他格式,以便导入您的 mysql 数据库。本教程非常清楚地解释了该过程https://www.codeenigma.com/community/blog/using-mdbtools-nix-convert-microsoft-access-mysql

回答by Mitsos

The conversion with MySQL ODBC driver and connecting to MySQL i think is the fastest way!

使用 MySQL ODBC 驱动程序转换并连接到 MySQL 我认为是最快的方法!

MySQL ODBC Connector Driver http://dev.mysql.com/downloads/connector/odbc/

MySQL ODBC 连接器驱动程序 http://dev.mysql.com/downloads/connector/odbc/