![]() ![]() Windows non-PATH example: "C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe" -help The mongo Command The MongoDB shell version is listed at the top. The help list is quite long, so I won’t output it all here. Windows non-PATH example: "C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe" -version The mongo -help CommandĪnother way to get the mongo shell version is to run mongo -help from a Terminal window or Command Prompt. If you need the mongo shell version, you can run the mongo -version command from a Terminal window or Command Prompt. You could alternatively navigate to the folder via the file explorer – a process which will also reveal the version number. Ironically, you’ll need to know the version before you can write the path! (You’ll need to replace 4.4 with the your MongoDB version). Like this: "C:\Program Files\MongoDB\Server\4.4\bin\mongod.exe" -version If you’re on Windows and you haven’t added MongoDB to your PATH, you’ll need to use the full path. If you’re not connected to MongoDB, you can open a Terminal window or Command Prompt and run mongod -version. Result: 4.4.1 The mongod -version Command This method returns the version of the mongod or mongos instance. ![]() If you’re already connected to MongoDB, you can use the db.version() method to check the version. If you’re wondering what version of MongoDB you’re running, here are 7 ways you can use to check.Īctually, some of these check your MongoDB server version, and some check your mongo shell version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |