mongodb
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mongodb [2025/12/13 17:21] – created reddy | mongodb [2025/12/13 17:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| python3 -m pip install mtools psutil pymongo | python3 -m pip install mtools psutil pymongo | ||
| - | |||
| # mlaunch --init --replicaset --nodes 1 --sharded 2 --port 28000 | # mlaunch --init --replicaset --nodes 1 --sharded 2 --port 28000 | ||
| # mongosh --port 28000 | # mongosh --port 28000 | ||
| + | </ | ||
| + | |||
| + | ====== Key-file login ====== | ||
| + | |||
| + | <code bash> | ||
| + | mongo -u __system -p "$(tr -d ' | ||
| + | </ | ||
| + | |||
| + | ====== MongoSH JSON ====== | ||
| + | |||
| + | To increase the levels of JSON nesting to display (from the default of 6), run the following: | ||
| + | |||
| + | <code javascript> | ||
| + | config.set(" | ||
| </ | </ | ||
mongodb.1765642887.txt.gz · Last modified: (external edit)
