TLDRBins TLDRBins / Microsoft Access Database


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

Tools

sudo apt install mdbtools
Sample Output: TO-DO

Basic

# Show all tables mdb-tables <MDB_FILE>
Sample Output: $ mdb-tables backup.mdb acc_antiback acc_door acc_firstopen acc_firstopen_emp acc_holidays acc_interlock ...[SNIP]...
# Show tables with data mdb-tables <MDB_FILE> | tr ' ' '\n' | grep . | while read table; do lines=$(mdb-export <MDB_FILE> $table | wc -l); if [ $lines -gt 1 ]; then echo "$table: $lines"; fi; done
Sample Output: $ mdb-tables backup.mdb | tr ' ' '\n' | grep . | while read table; do lines=$(mdb-export backup.mdb $table | wc -l); if [ $lines -gt 1 ]; then echo "$table: $lines"; fi; done acc_timeseg: 2 acc_wiegandfmt: 12 ACGroup: 6 action_log: 25 areaadmin: 4 auth_user: 4 ...[SNIP]...
# Dump data from table mdb-export <MDB_FILE> <TABLE_NAME>
Sample Output: $ mdb-export backup.mdb auth_user id,username,password,Status,last_login,RoleID,Remark 25,"admin","admin",1,"08/23/18 21:11:47",26, 27,"engineer","access4u@security",1,"08/23/18 21:13:36",26, 28,"backup_admin","admin",1,"08/23/18 21:14:02",26,