I was looking into upgrading my instance of MariaDB from 10.4 to 10.5, and according to https://mariadb.com/kb/en/upgrading-from-mariadb-104-to-mariadb-105/, I'm supposed to run mysql_upgrade or mariadb-upgrade as part of the upgrade procedure.
I didn't see this being done anywhere in docker-entrypoint.sh, so I ran it myself after restarting with the mariadb:10.5 image. According to the mysql_upgrade docs:
It's also safe to run mysql_upgrade for minor upgrades, as if there are no incompatibles [sic] between versions it changes nothing.
So it seems like it might be a good idea to just always run it as part of startup to make version upgrades more seamless.
I was looking into upgrading my instance of MariaDB from 10.4 to 10.5, and according to https://mariadb.com/kb/en/upgrading-from-mariadb-104-to-mariadb-105/, I'm supposed to run
mysql_upgradeormariadb-upgradeas part of the upgrade procedure.I didn't see this being done anywhere in
docker-entrypoint.sh, so I ran it myself after restarting with themariadb:10.5image. According to themysql_upgradedocs:So it seems like it might be a good idea to just always run it as part of startup to make version upgrades more seamless.