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