I have tried the recent yum update for MariaDB and it failed:
Running transaction
******************************************************************
A MySQL or MariaDB server package (MariaDB-server-10.2.44-1.el7.centos.x86_64) is installed.
Upgrading directly from MySQL 10.2 to MariaDB 10.4 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: %pre(MariaDB-server-10.4.34-1.el7.centos.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package MariaDB-server-10.4.34-1.el7.centos.x86_64
MariaDB-server-10.2.44-1.el7.centos.x86_64 was supposed to be removed but is not!
Verifying : MariaDB-server-10.2.44-1.el7.centos.x86_64 1/2
Verifying : MariaDB-server-10.4.34-1.el7.centos.x86_64 2/2
Failed:
MariaDB-server.x86_64 0:10.2.44-1.el7.centos MariaDB-server.x86_64 0:10.4.34-1.el7.centos
I am hesistant to follow the instructions as removing the old mariadb package might make something inaccessible. Please take a look at this, the yum update should complete this without user interference I think.