[MDEV-27638] Extend "MYSQL_DATABASE" ENV value Created: 2022-01-27 Updated: 2023-09-19 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Docker |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Madpeter | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Currently MYSQL_DATABASE only supports creating one database forcing a dirty CMD int hack to workaround I would like this to support CSV so you can create multiple databases with the same user. |
| Comments |
| Comment by Daniel Black [ 2022-01-27 ] | ||
|
I'm ok with this concept. Did you want to write a change to https://github.com/MariaDB/mariadb-docker/blob/master/docker-entrypoint.sh ? Keep the MYSQL_DATABASE/MARIADB_DATABASE as simple (non-array) variables and ensure that docker_exec_client just uses the first in the list. | ||
| Comment by Daniel Black [ 2022-02-10 ] | ||
|
From https://github.com/MariaDB/mariadb-docker/pull/409#issuecomment-1030646420
Yes. for docker_exec_client we should trim this down to the first database of the CSV. Madpeter do you have an answer for why not docker-entrypoint-initdb.d? |