# Pterodactyl

***

### 1) Download MongoDB Egg

<https://eggs.pterodactyl.io/egg/applications-mongodb-8/>

<figure><img src="/files/j9UFelqLssBJ8b9nZtbT" alt=""><figcaption></figcaption></figure>

***

### 2) Go to Nests

<figure><img src="/files/VglGvT4e0yfm9Ob9HRCZ" alt=""><figcaption></figcaption></figure>

### 3) Create a New Nest

<figure><img src="/files/weDNaIHtRpZfVjCrK26H" alt=""><figcaption></figcaption></figure>

### 4) Back and click in "import Egg" button

**4.1)** In associated Nest select "Database"

**4.2)** Click on import

<figure><img src="/files/Pb8BvGZHa1eNu2HDLWn1" alt=""><figcaption></figcaption></figure>

### 5) Create the server using MongoDB Egg

Set the password and username. Do not change them after installation, otherwise the MongoDB server will not start.

<figure><img src="/files/xpFASURXOi3KCetsdvSV" alt=""><figcaption></figcaption></figure>

### 6) Recommended: Create a user called "runithCore" with admin perms

**6.1)** Switch to the `admin` database\
The user's authentication database is the database where the user is created. For an administrator with wide-ranging privileges, you should create them in the `admin` database.bash

```bash
use admin
```

**6.2)** Create the user\
Use the `db.createUser()` method. The `root` role, when defined in the `admin` database, grants superuser privileges across the entire MongoDB instance.javascript

```json
db.createUser(
  {
    user: "runithCore",
    pwd: "testPassword", // Use https://www.lastpass.com/es//features/password-generator
    roles: [
      { role: "root", db: "admin" }
    ]
  }
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://runith.gitbook.io/runith/getting-started/mongodb/pterodactyl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
