2020-03-05 06:25:52 +07:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: MySQL
|
|
|
|
parent: Storage backends
|
|
|
|
grand_parent: Configuration
|
2020-03-27 06:43:10 +07:00
|
|
|
nav_order: 2
|
2020-03-05 06:25:52 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
# MySQL
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
storage:
|
2020-04-11 11:46:07 +07:00
|
|
|
mysql:
|
|
|
|
host: 127.0.0.1
|
|
|
|
port: 3306
|
|
|
|
database: authelia
|
|
|
|
username: authelia
|
2020-04-23 08:11:32 +07:00
|
|
|
# Password can also be set using a secret: https://docs.authelia.com/configuration/secrets.html
|
2020-04-11 11:46:07 +07:00
|
|
|
password: mypassword
|
2020-03-05 06:25:52 +07:00
|
|
|
```
|
2020-04-23 08:11:32 +07:00
|
|
|
|
2020-12-16 07:31:39 +07:00
|
|
|
## IPv6 Addresses
|
|
|
|
|
|
|
|
If utilising an IPv6 literal address it must enclosed by square brackets and quoted:
|
|
|
|
```yaml
|
|
|
|
host: "[fd00:1111:2222:3333::1]"
|
|
|
|
```
|
|
|
|
|
2020-04-23 08:11:32 +07:00
|
|
|
## Loading a password from a secret instead of inside the configuration
|
|
|
|
|
|
|
|
Password can also be defined using a [secret](../secrets.md).
|