how to know the database creation date in MongoDB

779 views
Skip to first unread message

Rajesh Billa

unread,
Jul 25, 2015, 3:39:41 AM7/25/15
to mongodb-user
Here , I want the know the creation date of  a database in mongodb.

Please suggest me.

Asya Kamsky

unread,
Jul 27, 2015, 1:10:50 AM7/27/15
to mongod...@googlegroups.com
Sharded or not?  Replica set or not?  What version and what storage engine?

There isn't specifically metadata that records do creation but there are ways to figure it out (depending on the answers to the questions above. 


On Friday, July 24, 2015, Rajesh Billa <billa.r...@gmail.com> wrote:
Here , I want the know the creation date of  a database in mongodb.

Please suggest me.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/a4528a3e-d333-44dc-96b1-e56516f1d96c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rajesh Billa

unread,
Jul 27, 2015, 3:10:39 PM7/27/15
to mongodb-user, billa.r...@gmail.com

Not sharded nor Replica . 3.0.4 version and on ubuntu storage

Asya Kamsky

unread,
Jul 28, 2015, 1:42:31 AM7/28/15
to mongodb-user
By storage engine I meant MMAP or WiredTiger.

You can check creation date of the DB file on disk to figure out when
it was first written to (which is the same as when it was created).
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user"
> group.
>
> For other MongoDB technical support options, see:
> http://www.mongodb.org/about/support/.
> ---
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mongodb-user...@googlegroups.com.
> To post to this group, send email to mongod...@googlegroups.com.
> Visit this group at http://groups.google.com/group/mongodb-user.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mongodb-user/173fa738-1591-4eaa-838c-602e8353ede7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages