---
layout: default
title: MySQL
parent: Storage backends
grand_parent: Configuration
nav_order: 2
---

# MySQL

```yaml
storage:
  mysql:
    host: 127.0.0.1
    port: 3306
    database: authelia
    username: authelia
    # Password can also be set using a secret: https://docs.authelia.com/configuration/secrets.html
    password: mypassword
```

## Loading a password from a secret instead of inside the configuration

Password can also be defined using a [secret](../secrets.md).