Skip to content

MDEV-25670 Run mysql_upgrade / mariadb-upgrade at startup #350

Description

@jjlin

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.

Metadata

Metadata

Assignees

Labels

RequestRequest for image modification or feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions