When you run a MongoDB server (mongod) in Windows,
you can encounter the following error:
C:\Program Files\MongoDB\Server\3.0\bin>mongod
2015-06-08T20:29:47.485+0900 I CONTROL Hotfix KB2731284 or later update is not installed, will zero-out data files
2015-06-08T20:29:47.565+0900 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory C:\data\db\ not found., terminating
2015-06-08T20:29:47.565+0900 I CONTROL [initandlisten] dbexit: rc: 100
You can fix it by creating the following directory:
C:\data\db
Unfortunately I can't understand why it fixed the problem.
Anyone who explains why?
Reference:
http://stackoverflow.com/questions/29316482/mongo-error-on-i-control-hotfix
No comments:
Post a Comment