Opening an .accdb file in Ubuntu?

23,294

Solution 1

I just released an access2csv program written in Java based on Jackess. Code is here, a binary is available here.

Solution 2

It is also possible to use the UCanAccess JDBC driver to connect to Access database files (.mdb and .accdb) from applications like LibreOffice Base. For detailed instructions on how to set it up, see my answer to

Is it possible to open an Access 2010 database file without using Wine or VirtualBox?

Solution 3

For Access 2000-2011(both Read-Write)

Jackcess is a pure Java library for reading from and writing to MS Access databases. It is part of the OpenHMS project from Health Market Science, Inc. . It is not an application. There is no GUI. It's a library, intended for other developers to use to build Java applications. It appears to be much newer than MDB tools, is more active and has write support.

Jackcess currently supports 2000-2010 files for read and writing but only reading for Access 97 files

For Older 97 Access (both Read-Write)

Try MDB Tools

Source

Solution 4

To export all the tables on Linux to CSV format try this command:

mdb-tables -d ',' database.accdb| xargs -L1 -d',' -I{} bash -c 'mdb-export database.accdb "$1" >"$1".csv' -- {}

You can use mdbtools also into windows via WSL (Ubuntu on Windows or Debian on Windows): Then install it in console with:

sudo apt install mdbtools
Share:
23,294

Related videos on Youtube

Alix Axel
Author by

Alix Axel

Updated on September 18, 2022

Comments

  • Alix Axel
    Alix Axel over 1 year

    I've received a Microsoft Access .accdb file (version 2010 I believe) that I need to get some data from.

    How can I open it in Ubuntu? Is there any tool that would allow me to do so?

    PS: Read-only is fine, if it has CSV exporting capabilities, the better.

    • Saurav Kumar
      Saurav Kumar over 10 years
      Did you try LibreOffice Database to open it.
    • Alix Axel
      Alix Axel over 10 years
      @SauravKumar: Yes, I even installed the additional ODBC plugins, but it doesn't to work with .accdb files.
    • Saurav Kumar
      Saurav Kumar over 10 years
      I had a doubt.. Actually, I opened it very long time ago.. I don't remember what did I use.. Thought that it would be OpenOffice Database. Now cleared!!
  • Alix Axel
    Alix Axel over 10 years
    Thanks, but both seem to be programming APIs, right? Having a GUI would be nice, or a simple CLI at least.
  • Stormvirux
    Stormvirux over 10 years
    @AlixAxel Libre Office has support till access 2007 but doesmt support 2010.Easy solution would be saving as 07 and using libre office. btw check this out: askubuntu.com/questions/187389/… and askubuntu.com/questions/284359/…
  • mLstudent33
    mLstudent33 over 3 years
    Error: Table does not exist in database