Load File with
You can use
mongoimport to import data
JSON or a
CSV file into MongoDB Atlas cluster.
The following tutorial uses
load data from a
JSON file to an Atlas cluster:
Set up a database user in the target Atlas cluster.¶
mongoimport to write to Atlas cluster, you
must specify a database user that has readWrite privileges in the database
into which to import data.
For example, a user with
role provides these privileges.
If no such user exists, create the user:
- In the Security section of the left navigation, click Database Access. The Database Users tab displays.
- Click Add New Database User.
- Add an Atlas admin user.
Open the connect dialog.¶
From the Clusters view, click Connect for the Atlas cluster into which you want to migrate data.