> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/knowledge-base/english/database/how-do-i-reset-the-initial-login-credentials-for-the-enginsight-platform.md).

# How do I reset the initial login credentials for the Enginsight platform?

If you restart the Docker containers on the Enginsight Application Server during the installation of the Enginsight platform without retrieving, saving, and ideally changing the [initial login credentials for the user interface](https://docs.enginsight.com/docs/manual/english/installation-und-konfiguration/installation-and-configuration/enginsight-platform/automated-installation/application-server#initial-login-credentials-for-the-user-interface), you can restore them by making a change to the database.

{% hint style="danger" %}
**Please note**: This database change only works if the database is still empty!
{% endhint %}

Follow these steps:

{% stepper %}
{% step %}

### Delete the database users

1. Log in to the **Enginsight Database Server**.
2. Open the MongoDB shell using the following command and navigate to the Enginsight database `enginsight`:

```
sudo mongosh
use enginsight
```

3. Delete the database users using the following command:

```
db.users.remove ({})
```

4. Restart MongoDB using the following command to apply the changes:

```
sudo systemctl restart mongodb
```

{% endstep %}

{% step %}

### Restart the Docker container `server-m2`

1. Log in to the **Application Server**.
2. Restart the Docker container `server-m2` using the following command:

```
sudo docker-compose restart server-m2
```

{% endstep %}

{% step %}

### Retrieve the initial login credentials for the user interface

Go on with the steps [described in the Enginsight Manual](https://docs.enginsight.com/docs/manual/english/installation-und-konfiguration/installation-and-configuration/enginsight-platform/automated-installation/application-server#initial-login-credentials-for-the-user-interface).
{% endstep %}
{% endstepper %}

***
