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
currently calls mysql_install_db and sets user to normal.
mysql_tzinfo_to_sql - removing prepared statement this could be part of mysql_install_db
(aka mysqld --bootstrap).
Support the following root creattion options:
- MYSQL_RANDOM_ROOT_PASSWORD (32 character upper/lower/number random password)
- MYSQL_ROOT_HOST host component for the user
note: password needs to be saved somehow.
Skip test database creation (backport from 10.2) - 9a8498066865 (limited) + scripts/mysql_test_db.sql + sql/*
probably need to remain a separate start of mysqld out of bootstrap mode.
47334649752e (part of 1st hunk of mysql_install._db.sh)