Use the db_dump program. It is contained in the package core/db (Arch), db-util (Debian, Ubuntu), sys-libs/db (Gentoo, note that here the binary is called db4.8_dump or any other version that you use).
On some systems, manual pages are not installed, in which case the documentation can be found here . By default, db_dump prints some hexadecimal numbers, which is not very useful if you are trying to parse the contents of a database. Use the -p argument to change this.
Show everything in the database.db file:
db_dump -p database.db
List the databases in database.db :
db_dump -l database.db
Show only the contents of the mydb database in the database.db file:
db_dump -p -s mydb database.db
cdauth Dec 20 '15 at 1:47 2015-12-20 01:47
source share