From http://www.mongodb.org/display/DOCS/Tutorial#Tutorial-RunningMongoDB
According to tutorial, a win-32 bit Mongo is installed on my pc(winXP).
The important binaries for a first run are:
- mongod.exe - the database server.
- mongo.exe - the administrative shell
When I run mongod.exe in cmd, there is an error below:
Wed May 30 15:09:50 [initandlisten] exception in initAndListen: 10296 dbpath (/data/db) does not exist, terminating
So I create /data/db in Q:\ and run it like mongod.exe --dbpath Q:\data\db, then it runs.(By default MongoDB will store data in \data\db, but it won't automatically create that folder, so we need to do so before running it)
E:\App\Mongo\bin>mongo
MongoDB shell version: 2.0.5
connecting to: test
>use dbname the database is created lazily the first time data is inserted.