From 5b1ea3fe5f3eea484c26f23f4a13afa2b958fb96 Mon Sep 17 00:00:00 2001 From: Diego Freniche Date: Mon, 29 Sep 2025 18:19:44 +0200 Subject: [PATCH 1/2] Removed wrong info box --- docs/50-create-project/60-connect-database.mdx | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/50-create-project/60-connect-database.mdx b/docs/50-create-project/60-connect-database.mdx index 99dc7dc..8def4cf 100644 --- a/docs/50-create-project/60-connect-database.mdx +++ b/docs/50-create-project/60-connect-database.mdx @@ -18,9 +18,6 @@ Enter the details for the PostgreSQL database you will be migrating from. - 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. - If your instructors have configured a server for you to use, ask them for the host name, username and password. -:::info -👐 If you have followed the steps to configure PostgreSQL in Instruqt / GitHub Codespaces, the hostname will be `localhost`, username `postgres` and password `postgres`. -::: - Click back on the `General` tab and enter the database name as `library`. - Check the `Save password` box if you want to save the password for future connections. - Click `Test Connection` to ensure your details are correct. You should see a message saying "PostgreSQL database connection successful." From 9b7e2d6f332343ab86181a3def19e81ff5ed2ab7 Mon Sep 17 00:00:00 2001 From: Diego Freniche Date: Mon, 29 Sep 2025 18:20:07 +0200 Subject: [PATCH 2/2] Added correct connection string for current container --- docs/220-Migrate Data/10-migration.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/220-Migrate Data/10-migration.mdx b/docs/220-Migrate Data/10-migration.mdx index aa93ade..4b53cf3 100644 --- a/docs/220-Migrate Data/10-migration.mdx +++ b/docs/220-Migrate Data/10-migration.mdx @@ -22,7 +22,11 @@ import Screenshot from "@site/src/components/Screenshot"; - Specify MongoDB connection details - Enter the URI, database, username and password for your MongoDB cluster. - - If you are using Atlas, you can retrieve the details from the [Atlas portal](https://cloud.mongodb.com). + - If you are running this in Instruqt, a Codespace or locally with Docker, you can use the following connection string: + ``` + mongodb://admin:mongodb@mongodb:27017/library?authSource=admin + ``` + - 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). - `Test connection`. - Click on `Connect`.