This topic created in 4953 days ago, the information mentioned may be changed or developed.
找不到默认数据库test存在哪里以及 我怎么创建新的数据库,然后创建的新的数据库在哪里呢?
4 replies • 1970-01-01 08:00:00 +08:00
 |
|
homebrew安裝的MongoDB會創建一個默認的配置文件: /usr/local/etc/mongod.conf, 看看這個文件你就知道了. 默認的數據庫路徑應該是 /usr/local/var/mongodb
|
 |
|
@ 013231 为什么这个路径下我也没找到test数据库呢?
|
 |
|
因为test不是默认有的....
|
 |
|
MongoDB 不用手动建数据库和集合,你用到哪个库就会自动建立那个库的,往哪个集合里面写了内容就会自动建立哪个集合。
|