Skip to content
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

MariaDB 10.11 rootless fails on mysql_upgrade --force, stepmysql_fix_privilege_tables #1180

Open
AlexSkrypnyk opened this issue Dec 1, 2024 · 0 comments

Comments

@AlexSkrypnyk
Copy link

I've been trying to get the mariadb 10.11 image working with imported DB for a rootless user and have found that mysql_upgrade --force always fails on mysql_fix_privilege_tables for the first time but then runs okay for the second time (I have modified the entrypoint during my experiments).

I found this explanation:

Starting from mariadb-upgrade 2.0, the user running the upgrade tool must have write access to datadir/mysql_upgrade_info, so that the tool can write the current MariaDB version into the file. mariadb-upgrade (or mysql_upgrade) was updated in MariaDB 10.2.42, MariaDB 10.3.33, MariaDB 10.4.23, MariaDB 10.5.14, MariaDB 10.6.6, MariaDB 10.7.2 and newer.

Questions:

  1. Are there any tests for that branch of the entrypoint that is dealing with the "MySQL directory already present" case?
  2. Have you tried to run mysql_upgrade --force for that case with rootless user for 10.11?

Workaround

mysql_upgrade --force||mysql_upgrade --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant