Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Mongo connect db

1	mongo # connects to mongodb://127.0.0.1:27017 by default
2	mongo --host <host> --port <port> -u <user> -p <pwd> # omit the password if you want a prompt
3	mongo "mongodb://192.168.1.1:27017"
4	mongo "mongodb+srv://cluster-name.abcde.mongodb.net/<dbname>" --username <username> # MongoDB Atlas
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #Mongo #connect #db
ADD COMMENT
Topic
Name
6+1 =