About connecting mongdb database

  mongodb, question


This code should be connected to the club database with the local host port number 27017 (if not, please correct me, I am a novice). I would like to ask where to create the club file directory when starting the mongodb database locally. the corresponding code is connected to the club database.

mongo -h –port 27017 -d club
This command is executed on a linux server. You can connect to the mongo database and then use mongo related commands to operate the database.
If you use java development, you can use jmongo to connect mongodb;
If you use python for development, you can use pymongo to connect mongodb;