Lab 1.1: Install Course Tools and Datasets

My laptop cannot run mongo shell (4.4.5) and I have to install it (only mongo shell) in AWS. I managed to connect to my Sandbox with mongo “mongodb+srv://:@.mongodb.net/admin” in Command Prompt.

But I can’t import the data with mongo “mongoimport --drop -c people --uri mongodb+srv://:@.mongodb.net/m201 people.json”.

I tried to upload people.json and restaurants.json to my Sandbox with Filezilla (either Port 21 or Port 22) but I can’t connect. Can I use Filezilla to upload files?

How do I connect to my Sandbox so that I can run Unix commands?

I’m sorry I am still not familiar with the environment even though I have completed M103: Basic Cluster.

Thank you.

Hi @Keng_Oon_Tan

In terms of getting the correct command syntax for your Atlas Sandbox cluster, you should refer to https://docs.atlas.mongodb.com/command-line-tools/#connect-with-mongoimport if you follow the instructions you will be able to obtain the correct link for importing to your cluster.

If you use Compass (MongoDB’s GUI for local machines), you should checkout this page https://docs.mongodb.com/compass/current/import-export/#import-and-export-data as it recently became possible to import and export data using Compass whether connected to a local or to a remote MongoDB deployment.

Hope this helps.

Kindest regards,
Eoin

3 Likes

Hi Eoin,

I managed to complete the lab exercise with mongoimport.

Am I able to connect to MongoDB Atlas (M0 Sandbox (General) or any higher cluster tier) with Putty (to run Unix commands) or Filezilla (to import files, etc)? Or I can only do that if I install MongoDB in a Linux server for mobile app development?

Thank you.

Hi @Keng_Oon_Tan

MongoDB Atlas is a hosted database, essentially it is a SaaS-like product or more specifically DBaaS (Database as a Service). You don’t require access to the command line or OS environment as the features such as running commands can either be performed via the Atlas UI, via Compass (MongoDB’s local install UI to a database/cluster) or programmatically via a driver (e.g. PyMongo for Python).

If you install your own hosted database on a Linux server, you can definitely access the OS or terminal environment on the machine directly. However, you must then maintenance and update that machine as well as the MongoDB deployment(s) on the machine. MongoDB Atlas was designed to manage your maintenance and updates seamlessly so you don’t need to worry about updating either the Operating System or the database version or indeed scaling it if you require a larger or smaller deployment.

Realm is also hosted within MongoDB Atlas so if you wish to use our hosted service for mobile app development, I’d suggest your checkout the Realm docs at https://docs.mongodb.com/realm/ or check out some examples on the Developer Hub at https://www.mongodb.com/learn/?content=Articles&text=Realm#main

Hope this helps clarify what MongoDB Atlas is and what you can do with it.

Kindest regards,
Eoin

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.