File | Date | Author | Commit |
---|---|---|---|
nbproject | 2017-09-06 |
![]() |
[59fd9b] Added LICENSE & README |
src | 2017-09-06 |
![]() |
[877a26] Initial commit |
.gitignore | 2017-09-06 |
![]() |
[29ee51] Updated gitignore for private.properties |
Arguments.txt | 2017-09-06 |
![]() |
[877a26] Initial commit |
LICENSE.txt | 2017-09-06 |
![]() |
[59fd9b] Added LICENSE & README |
LogFormat.txt | 2017-09-06 |
![]() |
[877a26] Initial commit |
README.md | 2017-09-06 |
![]() |
[923141] Added output-file parameter |
build.xml | 2017-09-06 |
![]() |
[877a26] Initial commit |
manifest.mf | 2017-09-06 |
![]() |
[877a26] Initial commit |
A Microsoft Access database conversion tool to convert old and new Access database formats to some other popular SQL based databases and formats. It is built with Jackess, a Java library for reading and writing MS Access databases. It supports Access 97 and all versions 2000-2013.
An online application that uses AccessConverter to convert databases can be found here https://lytrax.io/blog/tools/access-converter.
It is a command line tool and it accepts arguments. The output result on the screen can be either JSON, JSON prettified or normal (human readable) output. It creates a log file for each conversion that contains the conversion result along with all input parameters and conversion errors.
Parameter | Accepts | Description |
---|---|---|
--output-result |
json json-pretty normal |
The console output format. Can be JSON, JSON prettified or normal (human readable) output |
--access-file |
"<path>" |
The input access database file (mdb, accdb) |
--log-file |
"<path>" |
The output log file |
--zip-file |
"<path>" |
The output zip archive file that contains the converted file |
--output-file |
"<path>" |
The output file with the converted data (.json, .sql, .sqlite3, etc.) |
--task |
convert-json convert-mysql-dump convert-sqlite |
The task to perform. Convert to JSON or MySQL dump or SQLite |
--json-data |
assoc array |
Either to use associative arrays or simple indexed tables for tha JSON data |
-json-columns |
Add extended columns information for each table | |
-mysql-drop-tables |
Add DROP TABLE IF EXISTS for each table |
|
-compress |
Compress the output file to a zip archive file | |
-no-log |
Does not generate a log file |
Convert a .accdb file to JSON
Output file will have the same filename as the access file and it will be saved at the same location
java -jar AccessConverter.jar --access-file "/home/test/somedb.accdb" --task convert-json --json-data assoc -json-columns
Convert a .accdb file to MySQL dump file
Use different files and location for both output and log files. Console output JSON pretty-print result
java -jar AccessConverter.jar --access-file "/home/test/somedb.accdb" --task convert-mysql-dump --output-file "/home/sql/somedb_dump.sql" --log-file "/home/logs/somedb.log" -mysql-drop-tables --output-result json-pretty