User Tools

Site Tools


mongodb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mongodb [2025/12/13 17:21] – created reddymongodb [2025/12/13 17:57] (current) – external edit 127.0.0.1
Line 11: Line 11:
  
 python3 -m pip install mtools psutil pymongo  # Thomas Rucksteiss' mtools python3 -m pip install mtools psutil pymongo  # Thomas Rucksteiss' mtools
- 
 # mlaunch --init --replicaset --nodes 1 --sharded 2 --port 28000 # mlaunch --init --replicaset --nodes 1 --sharded 2 --port 28000
 # mongosh --port 28000 # mongosh --port 28000
 +</code>
 +
 +====== Key-file login ======
 +
 +<code bash>
 +mongo -u __system -p "$(tr -d '\011-\015\040' < path-to-keyfile)" --authenticationDatabase local
 +</code>
 +
 +====== MongoSH JSON ======
 +
 +To increase the levels of JSON nesting to display (from the default of 6), run the following:
 +
 +<code javascript>
 +config.set("inspectDepth", Infinity)
 </code> </code>
mongodb.1765642887.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki