ODBC connection to MS-Access on Ubuntu

三世轮回 提交于 2019-11-30 23:04:42
Renaud Bompuis

I'm not entirely sure I understand the use case here, but here are a few thoughts:

  • Access databases are file-based databases and therefore server-less.
    This means that the database file itself can reside on a local Windows machine, a windows network share or a SMB share on a linux box.

  • However, the application that queries the database must have access to the necessary drivers to manipulate the database.
    On Windows, this is not an issue: All Windows version come pre-installed with the Jet drivers for the old .mdb format. For the new .accdb format, you must have one of MSOffice 2007/2010/2013, Access 2007/2010/2013, Access Runtime 2007/2010/2013 or the standalone ACE driver installed to be able to use the new database format.

  • On Linux, the mdbtools package provides some degree of compatibility with the .mdb file format, allowing such a database to be queried and modified by a Linux application directly.
    Another Open Source library (java) for manipulating (.mdb and .accdb) databases is jackcess.

  • ODBC drivers for Linux exist, but as far as I know, they are commercial and can be fairly expensive, see the easysoft Access ODBC Driver.

  • See also this SO question: Connecting to access database from linux

Basically, if you are looking for an easy solution that would be Open Source, going to MySQL or using a local SQLite database will be a lot more workable on Linux.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!