推荐工具
RoboMongo
推荐书目
50 Tips and Tricks for MongoDB Developers
Related Blogs
Snail in a Turtleneck
painter
V2EX  ›  MongoDB

使用homebrew安装MongoDB后,默认数据库test在哪里?

  •  
  •   painter · Apr 14, 2013 · 5131 views
    This topic created in 4831 days ago, the information mentioned may be changed or developed.
    找不到默认数据库test存在哪里以及 我怎么创建新的数据库,然后创建的新的数据库在哪里呢?
    4 replies    1970-01-01 08:00:00 +08:00
    013231
        1
    013231  
       Apr 14, 2013
    homebrew安裝的MongoDB會創建一個默認的配置文件: /usr/local/etc/mongod.conf, 看看這個文件你就知道了.
    默認的數據庫路徑應該是 /usr/local/var/mongodb
    painter
        2
    painter  
    OP
       Apr 14, 2013
    @013231 为什么这个路径下我也没找到test数据库呢?
    ritksm
        3
    ritksm  
       Apr 14, 2013
    因为test不是默认有的....
    gamexg
        4
    gamexg  
       Apr 15, 2013
    MongoDB 不用手动建数据库和集合,你用到哪个库就会自动建立那个库的,往哪个集合里面写了内容就会自动建立哪个集合。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   970 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:12 · PVG 05:12 · LAX 14:12 · JFK 17:12
    ♥ Do have faith in what you're doing.