Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
Description
When trying to do a major version update via yum update the attempt is blocked by the server packages pre-install hook script to prevent unintended upgrades, as there is no easy way to roll back such a change.
Our Debian/Ubuntu packages do not seem to have a similar check though, there e.g. upgrading from 10.5 to 10.6 via apt-get upgrade or apt-get install mariadb-server works without prior server package removal.
RPMs terminate before installing the newer version with the following message instead:
Running scriptlet: MariaDB-server-10.6.21-1.el9.x86_64 3/6
|
|
******************************************************************
|
A MySQL or MariaDB server package (MariaDB-server-10.5.28-1.el9.x86_64) is installed.
|
|
Upgrading directly from MySQL 10.5 to MariaDB 10.6 may not
|
be safe in all cases. A manual dump and restore using mysqldump is
|
recommended. It is important to review the MariaDB manual's Upgrading
|
section for version-specific incompatibilities.
|
|
A manual upgrade is required.
|
|
- Ensure that you have a complete, working backup of your data and my.cnf
|
files
|
- Shut down the MySQL server cleanly
|
- Remove the existing MySQL packages. Usually this command will
|
list the packages you should remove:
|
rpm -qa | grep -i '^mysql-'
|
|
You may choose to use 'rpm --nodeps -ev <package-name>' to remove
|
the package which contains the mysqlclient shared library. The
|
library will be reinstalled by the MariaDB-shared package.
|
- Install the new MariaDB packages supplied by MariaDB Foundation
|
- Ensure that the MariaDB server is started
|
- Run the 'mysql_upgrade' program
|
|
This is a brief description of the upgrade process. Important details
|
can be found in the MariaDB manual, in the Upgrading section.
|
******************************************************************
|
error: %prein(MariaDB-server-10.6.21-1.el9.x86_64) scriptlet failed, exit status 1
|
IMHO we should not have such massive differences in how our packages behave across different Linux platforms
Attachments
Issue Links
- duplicates
-
MDEV-9584 Upgrading MariaDB 5.5 to 10.1.11 fails with RPM
-
- Stalled
-