Commit 481f892
Remove MYSQL_USER and MYSQL_PASSWORD from docker-compose.yaml (sqlc-dev#1123)
The right way to configure the *root* password is using the environment variable
`MYSQL_ROOT_PASSWORD`.
It also remove the `MYSQL_PASSWORD` because is only used the root user.
From MySQL log:
```
2021-08-13 20:28:55+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2021-08-13 20:28:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.26-1debian10 started.
2021-08-13 20:28:55+00:00 [ERROR] [Entrypoint]: MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user
Remove MYSQL_USER="root" and use one of the following to control the root user password:
- MYSQL_ROOT_PASSWORD
- MYSQL_ALLOW_EMPTY_PASSWORD
- MYSQL_RANDOM_ROOT_PASSWORD
```
Co-authored-by: Kyle Conroy <[email protected]>1 parent f7f0b86 commit 481f892
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
0 commit comments