This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Commit 6b982d9
authored
fix: Only create users in mysql 8.0 if they don't already exist (#1112)
This issue was breaking provisioning early in the process.
The volumes for mysql57 and mysql80 may still contain users from previous
provisioning runs. The old provisioning script for mysql 5.7 (provision.sql)
uses implicit user creation via the `GRANT` statement, which is no longer
supported in mysql 8.0. Therefore, the `CREATE USER` statements in
provision-mysql80.sql fail. The fix here is to change to `CREATE USER IF
NOT EXISTS`.
I've also deleted `drop-mysql-user.sql`. I suspect it was only used during
testing to enable repeated tests of provisioning, but it's not referenced
anywhere in the PR that adds it (#1097).1 parent 6c930bc commit 6b982d9
3 files changed
Lines changed: 14 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
| 500 | + | |
500 | 501 | | |
501 | 502 | | |
502 | 503 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | | - | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
6 | | - | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | | - | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | | - | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments