![]() These operations illustrated below are only possible if mongodb service is running.Įnsure that mongodb is running before running the command below. Note: windows users must insert the mongo-bin path when prompted for this command to work. If no connection is inserted, the App connects you to the mongoShell. you'll be prompted to insert connection string. This command was designed to connect to a remote database or the local mongo shell. You'll be prompted to insert it Its better if you installed mongodb manually. ![]() Note: For all the CRUD commands to work, ensure mongodb is running on the computerįor windows users, you should know the path to the mongo-bin directory. Stats returns of the statistics of the named database Remote|re connects to a remote database ie mlab or mongoaltas orĮval|ev run mongo shell commmand parsed as arguementsĭelcol|rmc deletes the named collectionĭelAll|dAll deletes all the documents in the specific collectionĪdd add documents or an array of documents into the collection List-collection|cols list all the collections in the preferred databaseĭel|-d deletes specified document from the database However, MongoDB is remarkably tolerant of the hardware it runs on, and is happy with what it can get. List|ls lists the databases available for usageĭocuments|docs returns all the documents in specific collection in a databaseįind|f finds the specific document from the name database When setting up MongoDB service under Windows, I reckon it is best to use a dedicated Windows server that has lashings of memory, and fast disk throughput. Start|s starts the mongo service for windows platform orĬhecks if the service is running on other platforms
0 Comments
Leave a Reply. |