[SERVER-13412] "--dbpath not set" error message is unclear and confusing Created: 31/Mar/14  Updated: 04/Sep/14  Resolved: 20/May/14

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.4.9
Fix Version/s: 2.7.2

Type: Bug Priority: Minor - P4
Reporter: Rahul Danwade Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: Windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7


Attachments: Text File error_on_console.txt    
Issue Links:
Depends
depends on SERVER-13463 Relative path in config file for mong... Closed
Operating System: ALL
Sprint: Server 2.7.2
Participants:

 Description   

I have followed all the steps to install mongodb as windows service on my windows 7 pc but after I did restart the following error displayed on console.



 Comments   
Comment by Mark Benvenuto [ 01/Apr/14 ]

Mongod.exe is looking for a directory to store database files called C:\data\db (where c: is the drive for you current working directory) by default unless you specify a --dbpath on the command line.

Either pass --dbpath to mongod or run "md \data\db"

Generated at Thu Feb 08 03:31:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.