mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Determine The Database Version as the first MongoDB til
This commit is contained in:
14
mongodb/determine-the-database-version.md
Normal file
14
mongodb/determine-the-database-version.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Determine The Database Version
|
||||
|
||||
Whether your Mongo database is local or remote, you should connect to it using
|
||||
the [`mongo` CLI](https://docs.mongodb.com/manual/mongo/).
|
||||
|
||||
Once connected, you can issue the following query:
|
||||
|
||||
```
|
||||
db.version()
|
||||
```
|
||||
|
||||
This will output the version of your Mongo database.
|
||||
|
||||
[source](https://docs.mongodb.com/manual/reference/method/db.version/)
|
||||
Reference in New Issue
Block a user