While you can install your own instance on your computer, there services which offer database as a service. In this part of tutorial, you will learn how to use mLab.
connect( host='mongodb://<YOUR_USERNAME>:<YOUR_PASSWORD>@<DS_NUMBER>.mlab.com:<PORT_NUMBER>/<YOUR_DATABASE_NAME>' )Be noted that you need to replace the variable in the above string using your username and password, and the string provided in the previous step.
Resource created 7 years ago, last modified 5 years ago.