• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

MongoDB - mLab / Cloud

SimonMac

TykeLike
Joined
Aug 27, 2010
Messages
24,897
Likes received
5,244
Thanks received
1,850
Location
God's Own Republic Of Yorkshire
I'm trying to set up an azure web app, and it's instructions are as follows:

Code:
Enter your mongo (mLab) URI in the Mongo Connection box.
Your mLab URI will use the syntax shown in this example, but you must fill in your OWN information, not the sample values shown here:

mongodb://databaseUserName:databaseUserPassword@ds012345.mlab.com:12345/databaseName

For example:
mongodb://sallyuser:sallypassword@ds012345.mlab.com:12345/mycgm

Now it turns out mLab has been deprecated by Cloud Atlas?!

I've signed up for an account, I have a cluster and created a user to connect with, however I. can't for the life of me work out how to create a database. Can it be done through the webpages or do I have to. use mongo shell? If so once I have mongo shell installed how to I connect when there is no db, as all the instructions are how to conned to a DB, not create one in the first place!
 
There used to be plenty Mongo databases available open to the world. Maybe check if any of these is still available? These didn't even have passwords set.
 
Iuse mongo shell? If so once I have mongo shell installed how to I connect when there is no db, as all the instructions are how to conned to a DB, not create one in the first place!

Apparently when you start Mongo shell, it connects to 'test' db by default. You can also switch to non-existing databases by simply 'use my-non-existent-db'.

In the past I have briefly worked in mongodb when using Meteor javascript framework. It's easy to learn and forget, if you have been in RDBMS space for long enough :-)
 
Last edited: 21:26

Advertisers

Back
Top