LoginSignup
10
9

More than 5 years have passed since last update.

MS Access の データを mdbtools で見る

Last updated at Posted at 2017-12-21

マイクロソフト Access の データ (*.mdb) を、Linux で取り扱う方法です。

mdbtools を使います。

Arch Linux へのインストール方法

yaourt -S mdbtools

Ubuntu 17.10 へのインストール方法

sudo apt install mdbtools

*.mdb ファイルのバージョンを表示

mdb-ver test_a.mdb

実行結果

JET4

スキーマを表示

mdb-schema test_a.mdb

実行結果
ちゃんと、日本語も表示されました。
mdb-schema_dec21.png

MySQL 用のスキーマを表示

mdb-schema test_a.mdb

実行結果
mdb-schema_dec2201.png

テーブルの一覧

mdb-tables -1 test_aa.mdb

テーブルを、CSV で出力

mdb-export test_aa.mdb table_aa

テーブルを MySQL 用に出力

mdb-export -D "%Y-%m-%d %H:%M:%S" -H -I mysql test_aa.mdb table_aa

参考にしたページ
Using mdbtools on *nix to convert Microsoft Access to MySQL
mdb-export.txt

10
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
9