Background – The Toad Extension for Eclipse dev team is in the process of adding MongoDB support! The first phase of this effort is to add an object explorer interface for MongoDB so that we can gather feedback and add that functionality back into the tool, A truly crowdsourced effort. To help, I’ve documented how to get MongoDB up and running while future posts will focus on Toad Extension specific features. Full installation instructions from MongoDB are here , but if you want a quick and dirty, get me up and running in 5 minutes primer, you are in the right place. I am installing MongoDB 3 on Windows 7 Ent 64-bit, should probably work well enough for most flavors of Windows OS though. I think you can get up and running with sample data in less than 5 minutes…time yourself and let me know. In your Web Browser - Get latest version (3.x) of MongoDB here - On your Windows Machine - Run mongodb-win32-x86_64-2008plus-ssl-3.0.0-signed.msi (I'd recommend the complete install rather than the Custom Install, it’s pretty lightweight). On your Windows Machine - Create MongoDB Data Directory Open Command Prompt – Start | Cmd C:\Users\bwulf mkdir C:\data\db On your Windows Machine - Launch mongod.exe (this is the server) C:\Users\bwulf cd C:\Program Files\MongoDB\Server\3.0\bin C:\Program Files\MongoDB\Server\3.0\bin\ mongod.exe 5. In your Web Browser - Get Sample Data Open media.mongodb.org/zips.json Right click in background of page and save as zips.json. NOTE: I saved zips.json in c:\delete. This will figure into the next steps, so don’t screw this up! 6. On your Windows Machine - Open a second command prompt and move to the MongoDB bin directory C:\Users\bwulf cd C:\Program Files\MongoDB\Server\3.0\bin Confirm that the expected .exe files are there: C:\Program Files\MongoDB\Server\3.0\bin dir 7. On your Windows Machine - In the same command prompt, use mongoimport to create your db and collection with the zips.json file you saved in c:\delete. C:\Program Files\MongoDB\Server\3.0\bin mongoimport --db test --collection zips --file c:\delete\zips.json 8. On your Windows Machine – In the same command window, launch mongo.exe C:\Program Files\MongoDB\Server\3.0\bin mongo.exe 9. Now, run your first MongoDB command MongoDB shell version: 3.0.0 connecting to: test db.zips.find() That’s good, you've taken your first step into a larger world! /obiwanvoice . Stay tuned for the next steps where we use Toad Extension for Eclipse to make sense of this ‘self describing’ schema!
↧