Skip to content

Commit 13d5b3b

Browse files
authored
Merge pull request #39 from mongodb-developer/add-correct-mongodb-import-uri
Add correct mongodb import uri
2 parents a268136 + 8c02c9b commit 13d5b3b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/220-Migrate Data/10-migration.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ import Screenshot from "@site/src/components/Screenshot";
2222

2323
- Specify MongoDB connection details
2424
- Enter the URI, database, username and password for your MongoDB cluster.
25-
- If you are using Atlas, you can retrieve the details from the [Atlas portal](https://cloud.mongodb.com).
25+
- If you are running this in Instruqt, a Codespace or locally with Docker, you can use the following connection string:
26+
```
27+
mongodb://admin:mongodb@mongodb:27017/library?authSource=admin
28+
```
29+
- If you are using Atlas, you can retrieve the details from the [Atlas portal](https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-mongodb-atlas-connection-string).
2630
- `Test connection`.
2731
- Click on `Connect`.
2832

docs/50-create-project/60-connect-database.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ Enter the details for the PostgreSQL database you will be migrating from.
1818

1919
- It's important to click on the `SSL` tab and activate `Use SSL` (`SSL mode` Prefer is fine), otherwise we won't be able to connect to cloud hosted databases.
2020
- If your instructors have configured a server for you to use, ask them for the host name, username and password.
21-
:::info
22-
👐 If you have followed the steps to configure PostgreSQL in Instruqt / GitHub Codespaces, the hostname will be `localhost`, username `postgres` and password `postgres`.
23-
:::
2421
- Click back on the `General` tab and enter the database name as `library`.
2522
- Check the `Save password` box if you want to save the password for future connections.
2623
- Click `Test Connection` to ensure your details are correct. You should see a message saying "PostgreSQL database connection successful."

0 commit comments

Comments
 (0)