Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mongo shell change db

# Change DB - also sets the mongo shell variable 'db' to the current database
use <db_name>

# Show DB list
show dbs
 
PREVIOUS NEXT
Tagged: #mongo #shell #change #db
ADD COMMENT
Topic
Name
4+9 =