Difference between revisions of "Geth db"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
[[geth db compact|compact]] Compact leveldb database. WARNING: May take a very long time | [[geth db compact|compact]] Compact leveldb database. WARNING: May take a very long time | ||
[[geth db get|get]] Show the value of a database key | [[geth db get|get]] Show the value of a database key | ||
− | delete Delete a database key (WARNING: may corrupt your database) | + | [[geth db delete|delete]] Delete a database key (WARNING: may corrupt your database) |
− | put | + | [[geth db put|put]] Set the value of a database key (WARNING: may corrupt your database) |
− | [[dumptrie]] Show the storage key/values of a given storage trie | + | [[geth db dumptrie|dumptrie]] Show the storage key/values of a given storage trie |
− | freezer-index Dump out the index of a specific freezer table | + | [[geth db freezer-index|freezer-index]] Dump out the index of a specific freezer table |
− | import Imports leveldb-data from an exported RLP dump. | + | [[geth db import|import]] Imports leveldb-data from an exported RLP dump. |
export Exports the chain data into an RLP dump. If the <dumpfile> has .gz suffix, gzip compression will be used. | export Exports the chain data into an RLP dump. If the <dumpfile> has .gz suffix, gzip compression will be used. | ||
metadata Shows metadata about the chain status. | metadata Shows metadata about the chain status. |
Revision as of 11:30, 7 October 2024
geth db --help geth db inspect geth db stats
geth db --help NAME: geth db - Low level database operations USAGE: geth db command [command options] [arguments...] COMMANDS: inspect Inspect the storage size for each type of data in the database stats Print leveldb statistics compact Compact leveldb database. WARNING: May take a very long time get Show the value of a database key delete Delete a database key (WARNING: may corrupt your database) put Set the value of a database key (WARNING: may corrupt your database) dumptrie Show the storage key/values of a given storage trie freezer-index Dump out the index of a specific freezer table import Imports leveldb-data from an exported RLP dump. export Exports the chain data into an RLP dump. If the <dumpfile> has .gz suffix, gzip compression will be used. metadata Shows metadata about the chain status. check-state-content Verify that state data is cryptographically correct inspect-history Inspect the state history within block range help, h Shows a list of commands or help for one command OPTIONS: --help, -h (default: false)
Related
See also
geth db [ inspect | check-state-content | metadata | --help ]
geth [ account | console | --authrpc.addr | version | --sepolia | --goerli | --pprof | --http | --syncmode | --mine ] --rpc.evmtimeout | --ethstats | --help
, Geth logs, geth logs WARN,Log.Error
, ports:8551, 30303, 8547, ~/.ethereum/geth/,
--verbosity, --config
,geth init
Advertising: