回答編集履歴

1

コメントにつけたらめだってなかったかな

2020/06/04 13:47

投稿

退会済みユーザー
test CHANGED
@@ -49,3 +49,29 @@
49
49
 
50
50
 
51
51
  こちらも同様に
52
+
53
+
54
+
55
+ ## 追記
56
+
57
+ #### mysql イメージを利用する場合にユーザー作成が必須な場合は基本こちらを利用しましょう
58
+
59
+
60
+
61
+
62
+
63
+ > **MYSQL_DATABASE**
64
+
65
+ >
66
+
67
+ > This variable is optional and allows you to specify the name of a database to be created on image startup. If a user/password was supplied (see below) then that user will be granted superuser access (corresponding to GRANT ALL) to this database.
68
+
69
+ >
70
+
71
+ > **MYSQL_USER, MYSQL_PASSWORD**
72
+
73
+ > These variables are optional, used in conjunction to create a new user and to set that user's password. This user will be granted superuser permissions (see above) for the database specified by the MYSQL_DATABASE variable. Both variables are required for a user to be created.
74
+
75
+ >
76
+
77
+ > Do note that there is no need to use this mechanism to create the root superuser, that user gets created by default with the password specified by the MYSQL_ROOT_PASSWORD variable.