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
The docker-compose.yml files in .examples/docker-compose/insecure/ (both apache and fpm) contain the environment variable MYSQL_ROOT_PASSWORD which will not work as the database (mariadb) expects the value in MARIADB_ROOT_PASSWORD.
To fix this:
Change the variable name from MYSQL_ROOT_PASSWORD to MARIADB_ROOT_PASSWORD in the following files:
Can you elaborate on what lead you to suspect this? If this is in fact occurring it's an issue that needs to be addressed in the MariaDB docker image repo because both variable prefixes are officially still documented by MariaDB:
I just investigated a little bit further. The error probably occurs because the env may not be empty. Whether it is called MARIADB_* or MYSQL_* does not make a difference as long as there is a value bound to it.
So for anyone who encounters the issueYou need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD, all you have to do is to assign some value to the MYSQL_ROOT_PASSWORD
This concludes the PR, do not merge, the code is better as is (keeps MySQL compatibility)
The docker-compose.yml files in
.examples/docker-compose/insecure/
(both apache and fpm) contain the environment variableMYSQL_ROOT_PASSWORD
which will not work as the database (mariadb) expects the value inMARIADB_ROOT_PASSWORD
.To fix this:
Change the variable name from
MYSQL_ROOT_PASSWORD
toMARIADB_ROOT_PASSWORD
in the following files:.examples/docker-compose/insecure/apache/docker-compose.yml
.examples/docker-compose/insecure/fpm/docker-compose.yml
The text was updated successfully, but these errors were encountered: