[MDEV-23494] mysql_install_db.sh features for docker container Created: 2020-08-17 Updated: 2023-10-12 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Daniel Black |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The docker entrypoint for containers does too much work The lack of options in mysql_install_db.sh means that the server is restarted several times within a container on initialization. Unlike the standard model of database deployment where initialization is a rare event, with containers this is now a frequent and time critical function. aspect to be improve are under these functions docker_init_database_dircurrently calls mysql_install_db and sets user to normal. docker_setup_dbmysql_tzinfo_to_sql - removing prepared statement this could be part of mysql_install_db Support the following root creattion options:
note: password needs to be saved somehow. Skip test database creation (backport from 10.2 Additional user:
docker_process_init_filesprobably need to remain a separate start of mysqld out of bootstrap mode. to assist in merging upwards without fault47334649752e (part of 1st hunk of mysql_install._db.sh) |
| Comments |
| Comment by Ralf Gebhardt [ 2023-10-12 ] |
|
I have removed the fixVersion for this task as it is one of 5.5, 10.1, 10.2, 10.3, which are EOLed. Please add a new fixVersion if you plan to work on this task for a not EOLed versions. |