-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to auto upgrade user tables #562
Comments
I'm open to removing What upgrade path did you follow to necessitate the manual action? What errors resulted? Last I looked I couldn't find one and descriptions of need resulted "in theory we could .." answers without a concrete "its needed always case provide". |
My normal upgrade path looks like the following
For all MariaDB container updates, that do not require step 3, i am having a working automation. But the automation can not cover step 3, as it does not have the root password for the MariaDB. So normally, this should be solveable by passing
Currently, theres luckily no error - but i also dont want to wait for that one day, where errors happen, since my user tables werent upgraded since the last 8763847568 major releases of MariaDB and something becomes incompatible or something like that. Of course, i could prevent that, by using my current upgrade path, but i want to get rid of the manual interaction. |
I think I've ran into the issue @WhoAmI0501 was fearing – |
Its a different issue I suspect. Container version of the same:
|
@grooverdan unfortunately, the container doesn't appear to support running
I looked at the entry point and it doesn't seem as though you can set an env var to skip this SQL. EDIT: I managed to run those commands and get |
If a database doesn't exist you'll have troubles using a |
Hi,
from todays point, it is possible to automatically run
mariadb-upgrade --upgrade-system-tables
on container start, by settingMARIADB_AUTO_UPGRADE
toTRUE
.Unfortunately, this is not covering my user tables, which leads to the fact, that theres still a human interaction required, to complete the MariaDB upgrade.
I am sure, that this is not the expected behavior for important production deployments, but for smaller projects/home use, it would be very nice, to have an optional way/variable, to also upgrade the user tables on container startup.
From my recent lookup in the current
docker-entrypoint.sh
, this can may be handled with only one additional if condition - but i am not sure, whether there is any greater impact or something different, that must be kept in mind, while implementing this feature.If the maintainers are fine with a feature like that, i may also contribute it via PR.
The text was updated successfully, but these errors were encountered: