Mongodb

From Halfface
Revision as of 15:00, 14 October 2020 by Ekaanbj (talk | contribs) (→‎connect)
Jump to navigation Jump to search

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