简体   繁体   中英

I can't find a MongoDB Database on my data/db path

I created a test database using use testdb on my Mongo directory, after that i went to my data\\db path but i did not find any file named testdb there. Is my database stored in some other way or is it just somewhere else?

Before creating the db, i set my path with --dbpath C:\\mongodb\\data\\db

The specified DB path stored the data created by running mongod process. If you've not specified directoryPerDB , it will store data for all databases into the same directory specified in dbpath.

MongoDB creates a file for each index and each collection in a dbpath which is normally not identifiable by its name. You can not locate a directory name for your DB's.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM