You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -113,12 +111,11 @@ Container images are configured using parameters passed at runtime (such as thos
113
111
|`-p 3306`| Mariadb listens on this port. |
114
112
|`-e PUID=1000`| for UserID - see below for explanation |
115
113
|`-e PGID=1000`| for GroupID - see below for explanation |
116
-
|`-e MYSQL_ROOT_PASSWORD=<DATABASE PASSWORD>`| Set this to root password for installation (minimum 4 characters). |
114
+
|`-e MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD`| Set this to root password for installation (minimum 4 characters). |
117
115
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London. |
118
-
|`-e MYSQL_DATABASE=<USER DB NAME>`| Specify the name of a database to be created on image startup. |
119
-
|`-e MYSQL_USER=<MYSQL USER>`| This user will have superuser access to the database specified by MYSQL_DATABASE. |
120
-
|`-e MYSQL_PASSWORD=<DATABASE PASSWORD>`| Set this to the password you want to use for you MYSQL_USER (minimum 4 characters). |
121
-
|`-e MYSQL_ROOT_PASSWORD_FILE=/location/of/file`| Set this to the location of a text file containing your password. |
116
+
|`-e MYSQL_DATABASE=USER_DB_NAME`| Specify the name of a database to be created on image startup. |
117
+
|`-e MYSQL_USER=MYSQL_USER`| This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here). |
118
+
|`-e MYSQL_PASSWORD=DATABASE_PASSWORD`| Set this to the password you want to use for you MYSQL_USER (minimum 4 characters). |
122
119
|`-e REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql`| Set this to ingest sql files from an http/https endpoint (comma seperated array). |
123
120
|`-v /config`| Contains the db itself and all assorted settings. |
124
121
@@ -143,7 +140,7 @@ If you didn't set a password during installation, (see logs for warning) use
143
140
`mysqladmin -u root password <PASSWORD>`
144
141
to set one at the docker prompt...
145
142
146
-
NOTE changing the MYSQL_ROOT_PASSWORD or MYSQL_ROOT_PASSWORD_FILE variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
143
+
NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
147
144
148
145
NOTE if you want to use (MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD) **all three** of these variables need to be set you cannot pick and choose.
149
146
@@ -152,6 +149,26 @@ Unraid users, it is advisable to edit the template/webui after setup and remove
152
149
Find custom.cnf in /config for config changes (restart container for them to take effect)
153
150
, the databases in /config/databases and the log in /config/log/myqsl
154
151
152
+
### Loading passwords and users from files
153
+
154
+
The `MYSQL_ROOT_PASSWORD MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD REMOTE_SQL` env values can be set in a file:
- { env_var: "MYSQL_ROOT_PASSWORD", env_value: "<DATABASE PASSWORD>", desc: "Set this to root password for installation (minimum 4 characters)." }
26
+
- { env_var: "MYSQL_ROOT_PASSWORD", env_value: "ROOT_ACCESS_PASSWORD", desc: "Set this to root password for installation (minimum 4 characters)." }
27
27
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
28
28
param_usage_include_vols: true
29
29
param_volumes:
30
-
- { vol_path: "/config", vol_host_path: "<path to data>", desc: "Contains the db itself and all assorted settings." }
30
+
- { vol_path: "/config", vol_host_path: "path_to_data", desc: "Contains the db itself and all assorted settings." }
31
31
param_usage_include_ports: true
32
32
param_ports:
33
33
- { external_port: "3306", internal_port: "3306", port_desc: "Mariadb listens on this port." }
@@ -37,10 +37,9 @@ cap_add_param: false
37
37
# optional container parameters
38
38
opt_param_usage_include_env: true
39
39
opt_param_env_vars:
40
-
- { env_var: "MYSQL_DATABASE", env_value: "<USER DB NAME>", desc: "Specify the name of a database to be created on image startup." }
41
-
- { env_var: "MYSQL_USER", env_value: "<MYSQL USER>", desc: "This user will have superuser access to the database specified by MYSQL_DATABASE." }
42
-
- { env_var: "MYSQL_PASSWORD", env_value: "<DATABASE PASSWORD>", desc: "Set this to the password you want to use for you MYSQL_USER (minimum 4 characters)." }
43
-
- { env_var: "MYSQL_ROOT_PASSWORD_FILE", env_value: "/location/of/file", desc: "Set this to the location of a text file containing your password." }
40
+
- { env_var: "MYSQL_DATABASE", env_value: "USER_DB_NAME", desc: "Specify the name of a database to be created on image startup." }
41
+
- { env_var: "MYSQL_USER", env_value: "MYSQL_USER", desc: "This user will have superuser access to the database specified by MYSQL_DATABASE (do not use root here)." }
42
+
- { env_var: "MYSQL_PASSWORD", env_value: "DATABASE_PASSWORD", desc: "Set this to the password you want to use for you MYSQL_USER (minimum 4 characters)." }
44
43
- { env_var: "REMOTE_SQL", env_value: "http://URL1/your.sql,https://URL2/your.sql", desc: "Set this to ingest sql files from an http/https endpoint (comma seperated array)." }
45
44
opt_param_usage_include_vols: false
46
45
opt_param_usage_include_ports: false
@@ -55,7 +54,7 @@ app_setup_block: |
55
54
`mysqladmin -u root password <PASSWORD>`
56
55
to set one at the docker prompt...
57
56
58
-
NOTE changing the MYSQL_ROOT_PASSWORD or MYSQL_ROOT_PASSWORD_FILE variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
57
+
NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
59
58
60
59
NOTE if you want to use (MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD) **all three** of these variables need to be set you cannot pick and choose.
61
60
@@ -64,6 +63,26 @@ app_setup_block: |
64
63
Find custom.cnf in /config for config changes (restart container for them to take effect)
65
64
, the databases in /config/databases and the log in /config/log/myqsl
66
65
66
+
### Loading passwords and users from files
67
+
68
+
The `MYSQL_ROOT_PASSWORD MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD REMOTE_SQL` env values can be set in a file:
0 commit comments