Skip to content

Commit 9e21056

Browse files
Revert "fix(mdb): remove pages"
This reverts commit 6ade0e9.
1 parent 6ade0e9 commit 9e21056

File tree

9 files changed

+208
-5
lines changed

9 files changed

+208
-5
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
meta:
3+
title: How to create a database
4+
description: This page explains how to create a database
5+
content:
6+
h1: How to create a database
7+
paragraph: This page explains how to create a database
8+
tags: managed-database database postgresql mongodb database-instance mongodb
9+
dates:
10+
validation: 2024-09-18
11+
posted: 2024-09-18
12+
categories:
13+
- managed-databases
14+
---
15+
16+
<Macro id="requirements" />
17+
18+
<Message type="requirement">
19+
- You have an account and are logged into the [Scaleway console](https://console.scaleway.com)
20+
- You have a [MongoDB™ Database Instance](/managed-databases/mongodb/quickstart)
21+
</Message>
22+
23+
1. Click **MongoDB™ Databases** under **Managed Databases** on the side menu. A list of your Database Instances displays.
24+
2. Click the Database Instance name or <Icon name="more" /> > **More info** to access the Database Instance information page.
25+
3. Go to the **Databases** tab. A list of your databases displays. The list includes the database created by default upon Database Instance creation.
26+
4. Click **+ Create database** to create a new one. A pop-up appears.
27+
5. Enter a name for your database.
28+
29+
The new database appears in the list of your databases.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
meta:
3+
title: How to add users to a MongoDB™ Database Instance
4+
description: This page explains how to add users to a MongoDB™ Database Instance
5+
content:
6+
h1: How to add users to a MongoDB™ Database Instance
7+
paragraph: This page explains how to add users to a MongoDB™ Database Instance
8+
tags: managed-database database postgresql mongodb database-instance mongodb
9+
dates:
10+
validation: 2024-09-18
11+
posted: 2024-09-18
12+
categories:
13+
- managed-databases
14+
---
15+
16+
Users can connect to a database and access its data. Each user has a different set of customizable permissions.
17+
18+
<Macro id="requirements" />
19+
20+
<Message type="requirement">
21+
- You have an account and are logged into the [Scaleway console](https://console.scaleway.com)
22+
- You have a [MongoDB™ Database Instance](/managed-databases/mongodb/quickstart)
23+
</Message>
24+
25+
1. Click **MongoDB™ Databases** under **Managed Databases** on the side menu. A list of your Database Instances displays.
26+
2. Click the database name or <Icon name="more" /> > **More info** to access the Database Instance information page.
27+
3. Go to the **Users** tab. A list of users displays. If it is the first time you are creating a user, your list will display the user you set up during the creation of your Database Instance.
28+
4. Click <Icon name="plus" /> to create a new user.
29+
5. Click <Icon name="toggle" /> to grant admin rights to the user.
30+
<Message type="note">
31+
Admin rights allow a user to create logical databases and users. These rights do not override the permissions configured for the logical databases. Logical database permissions must be set up in the permissions tab.
32+
</Message>
33+
6. Enter the `username` and `password`.
34+
<Message type="note">
35+
Optionally, you can configure the appropriate permissions according to the user.
36+
Three types of permissions are available:
37+
- **None:** No access to the database
38+
- **Read:** Allow users to read tables and fields in a database
39+
- **Write:** Allow users to write content in databases
40+
You can select the permission type in the Permissions tab.
41+
</Message>
42+
7. Click **Create a user** to confirm.
43+
44+
Once the user is created, it is displayed in the user list.
45+
46+
To update the password, the permissions or delete the user, click <Icon name="more" /> to display the respective options.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
meta:
3+
title: How to configure advanced MongoDB™ Database Instance settings
4+
description: This page explains how to configure advanced database settings
5+
content:
6+
h1: How to configure advanced MongoDB™ Database Instance settings
7+
paragraph: This page explains how to configure advanced database settings
8+
tags: managed-database postgresql mongodb database-instance advanced-settings mongodb
9+
dates:
10+
validation: 2024-09-18
11+
posted: 2024-09-18
12+
categories:
13+
- managed-databases
14+
---
15+
16+
Advanced settings allow you to modify the default configuration of your database engines.
17+
18+
<Macro id="requirements" />
19+
20+
<Message type="requirement">
21+
- You have an account and are logged into the [Scaleway console](https://console.scaleway.com)
22+
- You have a [MongoDB™ Database Instance](/managed-databases/mongodb/quickstart)
23+
</Message>
24+
25+
<Message type="important">
26+
Changing the advanced settings can have an impact on the performance of your Database Instance.
27+
</Message>
28+
29+
1. Click **MongoDB™ Databases** under **Managed Databases** on the side menu. A list of your Database Instances displays.
30+
2. Click the database name or <Icon name="more" /> > **More info** to access the database information page.
31+
3. Click the **Advanced settings** tab.
32+
33+
To add advanced settings, follow these steps:
34+
35+
- Click <Icon name="edit" />.
36+
- Click **Add parameters**.
37+
- Select your parameter from the dropdown list.
38+
- Configure the value associated with your setting
39+
- Click <Icon name="validate" /> to validate.
40+
41+
To delete them:
42+
- Click <Icon name="edit" /> in the advanced settings tab.
43+
- Click <Icon name="delete" /> next to the setting you wish to delete.
44+
- Click <Icon name="validate" /> to confirm your changes.
45+

managed-databases/mongodb/how-to/connect-database-instance.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ categories:
1818
<Message type="requirement">
1919
- You have an account and are logged into the [Scaleway console](https://console.scaleway.com)
2020
- You have a [MongoDB™ Database Instance](/managed-databases/mongodb/quickstart)
21-
- You have installed either [mongosh](https://www.mongodb.com/docs/mongodb-shell/), or the [pymongo](https://pymongo.readthedocs.io/en/stable/) distribution for Python, or the Node.js [mongodb module](https://www.npmjs.com/package/mongodb) or the [mongo driver for Go](https://github.com/mongodb/mongo-go-driver), or [Mongoose](https://mongoosejs.com/) on your local machine
2221
</Message>
2322

2423
## How to connect via database client
@@ -27,7 +26,7 @@ categories:
2726
2. Click the database name or <Icon name="more" /> > **More info** to access the Database Instance information page.
2827
3. Click <Icon name="download" /> next to the **TLS certificate** to download it.
2928
4. Transfer the file to where you will execute the connection command.
30-
5. Return to the console and click **Connect** in the **Connect Database Instance** section. A pop-up appears.
29+
5. Return to the console and click **Connect** in the **Connect Database Instance** section.
3130
6. Select a connection mode. The following modes are available: `mongosh`, `Python`, `Go`, `Node.js` and `Mongoose`.
3231
7. Replace the variables in the commands with your information.
3332

managed-databases/mongodb/how-to/create-a-database-instance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ Document databases enable users to store and retrieve data in a document format,
4646
- Enter a name for your Database Instance.
4747
4. Click **Create a Database Instance** to confirm your choices and launch creation.
4848

49-
You are taken to the **Overview** tab for your Database Instance.
49+
You are taken to the **Overview** tab for your Database Instance, where you can see information including the **Endpoint** to enable you to connect to it.

managed-databases/mongodb/how-to/delete-a-database-instance.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ categories:
2323

2424
1. Click **MongoDB™** under **Managed Databases** on the side menu. A list of your Database Instances displays.
2525
2. Click the database name or <Icon name="more" /> > **More info** to access the Database Instance information page.
26-
3. Click the **Settings** tab, scroll down to the **Delete Database Instance** section and click **Delete Instance**. A pop-up appears to inform you that:
26+
3. Scroll down the page to the **Delete Instance** section and click **Delete Instance**. A pop-up appears to inform you that:
2727
<Message type="important">
2828
This will permanently destroy your Instance, and all your data will be lost. This action is irreversible.
2929
</Message>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
meta:
3+
title: How to delete a database
4+
description: This page explains how to delete a database
5+
content:
6+
h1: How to delete a database
7+
paragraph: This page explains how to delete a database
8+
tags: managed-database postgresql mongodb mongodb document database-instance
9+
dates:
10+
validation: 2024-02-08
11+
posted: 2023-08-01
12+
categories:
13+
- managed-databases
14+
---
15+
16+
17+
<Macro id="requirements" />
18+
19+
<Message type="requirement">
20+
- You have an account and are logged into the [Scaleway console](https://console.scaleway.com)
21+
- You have a [MongoDB™ Database Instance](/managed-databases/mongodb/quickstart)
22+
- You have a [database](/managed-databases/mongodb/how-to/add-a-database)
23+
</Message>
24+
25+
1. Click **MongoDB™ Databases** under **Managed Databases** on the side menu. A list of your Database Instances displays.
26+
2. Click the Database Instance name or <Icon name="more" /> > **More info** to access the Database Instance information page.
27+
3. Go to the **Databases** tab. A list of your databases displays.
28+
4. Click <Icon name="more" /> > **Delete** next to the database of your choice. A pop-up appears to inform that:
29+
<Message type="important">
30+
This will permanently destroy your database and all your data will be lost. This action is irreversible.
31+
</Message>
32+
5. Type **DELETE** to confirm and click **Delete database**.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
meta:
3+
title: How to manage user permissions
4+
description: This page explains how to manage user permissions on a Database Instance
5+
content:
6+
h1: How to manage user permissions
7+
paragraph: This page explains how to manage user permissions on a Database Instance
8+
tags: document mongodb managed-database postgresql database-instance mongodb
9+
dates:
10+
validation: 2024-02-08
11+
posted: 2023-08-01
12+
categories:
13+
- managed-databases
14+
---
15+
16+
Permissions define the actions a user can perform on a logical database. A database user is generated automatically when you create your Database Instance and this user is attributed all permissions.
17+
However, newly created users have no permissions by default.
18+
19+
<Macro id="requirements" />
20+
21+
<Message type="requirement">
22+
- You have an account and are logged into the [Scaleway console](https://console.scaleway.com)
23+
- You have a [MongoDB™ Database Instance](/managed-databases/mongodb/quickstart)
24+
</Message>
25+
26+
## Set permissions for an existing user
27+
28+
1. Click **MongoDB™ Databases** under **Managed Databases** on the side menu. A list of your Database Instances displays.
29+
2. Click the database name or <Icon name="more" /> > **More info** to access the Database Instance information page.
30+
3. Go to the **Users** tab. A list of users displays.
31+
4. Click <Icon name="more" /> > Update permissions to open the user permissions panel.
32+
5. Select the appropriate permissions for each database.
33+
<Message type="note">
34+
Three types of permissions are available:
35+
- **None:** No access to the database
36+
- **Read:** Allow users to read tables and fields in a database
37+
- **Write:** Allow users to write content in databases
38+
39+
</Message>
40+
6. Click **Update user** to confirm.
41+
42+
## Set permissions for a new user
43+
44+
During user creation, the permissions panel can be accessed through the top tab menu.
45+
For more information, see [how to add users](/managed-databases/mongodb/how-to/add-users).
46+
47+
<Message type="note">
48+
Permissions are applied on existing items **at the time the configuration is set**, and not applied to any items created afterward.
49+
When you modify your Database configuration, your configured permissions are automatically set to **Custom**. The **Custom** setting ensures that your permissions are still valid for items created before you reconfigured your Database.
50+
Any items created after you change your configuration will not have permissions applied to them, you must set new permissions.
51+
</Message>
52+

managed-databases/mongodb/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ MongoDB™ databases enable users to store and retrieve data in a document forma
4545
- Enter a name for your Database Instance.
4646
4. Click **Create a Database Instance** to confirm your choices and launch creation.
4747

48-
You are taken to the **Overview** tab for your Database Instance.
48+
You are taken to the **Overview** tab for your Database Instance, where you can see information including the **Endpoint** to enable you to connect to it.
4949

5050
## How to connect via database client with mongosh
5151

0 commit comments

Comments
 (0)