MDB_STAT(1)
β¨ mdb_stat β the LMDB environment status tool β¨
okay bestie so you know how this page is MDB_STAT(1) from the General Commands Manual? yeah. it's your girl mdb_stat, and she's here to spill all the tea about your LMDB environment. π«π
πΈ NAME πΈ
mdb_stat β the LMDB environment status tool. she looks at your environment and tells you everything going on in there. nosy in the best way. π
π SYNOPSIS π
mdb_stat [-V] [-e] [-f[f[f]]] [-n] [-r[r]] [-a | -s subdb] envpath
look at her. all those little flags. every single one matters, okay? don't skip any. π
π DESCRIPTION π
The mdb_stat utility displays the status of an LMDB environment. that's it, that's the job, and she does it flawlessly. π
β¨ OPTIONS β¨
okay so here's every single flag, no skipping, i don't make the rules (i do, actually, and i said keep them all):
-Vβ writes the library version number straight to standard output, and then she dips. exits immediately. bye bestie π-eβ shows you the info about the database environment itself. the whole vibe check. π¦-fβ shows info about the environment freelist. and if you give her-ff? she summarizes each freelist entry. and if you go full-fff? she displays the full list of page IDs in the freelist. escalating. obsessed. π₯-nβ displays the status of an LMDB database that does not use subdirectories. noted.-rβ shows info about the environment reader table. she gives you the process ID, the thread ID, and the transaction ID for each active reader slot. important deets: the process ID and transaction ID are in decimal, and the thread ID is in hexadecimal. if the reader doesn't currently have a read transaction open, the transaction ID shows up as"-". and if you give her-rr? she checks for stale entries in the reader table and clears them, then prints the reader table again after the check is done. she cleans up and shows receipts. π-aβ displays the status of all of the subdatabases in the environment. every single one. periodt.-s subdbβ displays the status of a specific subdatabase. just the one you asked for. main character energy only. π
also heads up:-aand-s subdbare an either/or situation, look at the synopsis, they're separated by that|for a reason bestie π
π«Ά DIAGNOSTICS π«Ά
exit status is zero if no errors occur. if something goes wrong? non-zero exit status, and a diagnostic message gets written to standard error. she will tell you. loudly. π
π SEE ALSO π
mdb_copy(1)β go read that one too, iykyk π¦
π AUTHOR π
Howard Chu of Symas Corporation <http://www.symas.com> β legend behavior, no cap. π
and that's the whole page bestie, you're officially fluent in mdb_stat. this was LMDB 0.9.17, dated 2015/09/30, and honestly? iconic. go stat something. πβ¨ππ¦πΈπ
π¦ where this page comes from
- alpine 3.22: lmdb-doc 0.9.33-r0 Β· OLDAP-2.8
- alpine 3.23: lmdb-doc 0.9.33-r0 Β· OLDAP-2.8
- alpine 3.24: lmdb-doc 0.9.35-r0 Β· OLDAP-2.8
- arch rolling: lmdb 0.9.35-1 Β· custom:OpenLDAP
- centos-stream 10: lmdb 0.9.32-4.el10 Β· OLDAP-2.8
- centos-stream 9: lmdb 0.9.32-1.el9 Β· OLDAP-2.8
- centos-stream 9: lmdb 0.9.32-1.el9 Β· OLDAP-2.8
- debian trixie: lmdb-utils 0.9.31-1+b2 Β· OpenLDAP-2.8
- fedora 43: lmdb 0.9.33-4.fc43 Β· OLDAP-2.8
- fedora 43: lmdb 0.9.33-4.fc43 Β· OLDAP-2.8
- fedora 43: lmdb 0.9.34-1.fc43 Β· OLDAP-2.8
- fedora 43: lmdb 0.9.34-1.fc43 Β· OLDAP-2.8
- fedora 44: lmdb 0.9.34-2.fc44 Β· OLDAP-2.8
- fedora 44: lmdb 0.9.34-2.fc44 Β· OLDAP-2.8
- nixos 26.05: lmdb 0.9.35
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- opensuse-leap 16.0: lmdb 0.9.30-160000.3.2 Β· OLDAP-2.8
- ubuntu noble: lmdb-utils 0.9.31-1build1 Β· OpenLDAP-2.8
- ubuntu questing: lmdb-utils 0.9.31-1build1
- ubuntu resolute: lmdb-utils 0.9.31-1build2 Β· OpenLDAP-2.8
- ubuntu stonking: lmdb-utils 0.9.35-1 Β· OpenLDAP-2.8
- Copyright 2012-2021 Howard Chu, Symas Corp. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms