Mongodb: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=connect= mongo =list databases= show dbs") |
|||
Line 1: | Line 1: | ||
=connect= | =connect= | ||
mongo | mongo | ||
=run command(list cluster information)= | |||
mongo --ssl --host mongo.inter.net --quiet -u admin -p P@ssW0rd --authenticationDatabase admin --eval 'rs.status();' | |||
=list databases= | =list databases= | ||
show dbs | show dbs |
Revision as of 15:00, 14 October 2020
connect
mongo
run command(list cluster information)
mongo --ssl --host mongo.inter.net --quiet -u admin -p P@ssW0rd --authenticationDatabase admin --eval 'rs.status();'
list databases
show dbs