Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11

Default db path is /data/db/ on Windows MongoDB

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None
    • Environment:
      Windows 7 64bit

      I have attempted to run mongod.exe after downloading the 64bit Windows build; and immediately have this error:

      ...>mongod
      mongod --help for help and startup options
      Thu Dec 09 18:42:39 MongoDB starting : pid=13128 port=27017 dbpath=/data/db/ 64-bit
      Thu Dec 09 18:42:39 db version v1.6.5, pdfile version 4.5
      Thu Dec 09 18:42:39 git version: 0eb017e9b2828155a67c5612183337b89e12e291
      Thu Dec 09 18:42:39 sys info: windows (6, 1, 7600, 2, '') BOOST_LIB_VERSION=1_42
      Thu Dec 09 18:42:39 exception in initAndListen std::exception: dbpath (/data/db/) does not exist, terminating
      Thu Dec 09 18:42:39 dbexit:

      Thu Dec 09 18:42:39 shutdown: going to close listening sockets...
      Thu Dec 09 18:42:39 shutdown: going to flush oplog...
      Thu Dec 09 18:42:39 shutdown: going to close sockets...
      Thu Dec 09 18:42:39 shutdown: waiting for fs preallocator...
      Thu Dec 09 18:42:39 shutdown: closing all files...
      Thu Dec 09 18:42:39 closeAllFiles() finished

      Thu Dec 09 18:42:39 dbexit: really exiting now

      I'm reading through the 'MongoDB: The Definitive Guide' and it indicates that c:\data\db\ should be the default directory on Windows.

      Trivial issue of course, just pointing it out!

            Assignee:
            Unassigned Unassigned
            Reporter:
            plasma Andrew Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              12 years, 12 weeks, 2 days ago