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
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).
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:
Are there any tests for that branch of the entrypoint that is dealing with the "MySQL directory already present" case?
Have you tried to run mysql_upgrade --force for that case with rootless user for 10.11?
Workaround
mysql_upgrade --force||mysql_upgrade --force
The text was updated successfully, but these errors were encountered:
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 onmysql_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:
Questions:
mysql_upgrade --force
for that case with rootless user for 10.11?Workaround
mysql_upgrade --force||mysql_upgrade --force
The text was updated successfully, but these errors were encountered: