Well,
I tried again to update mariadb but ended with this message :
******************************************************************
A MySQL or MariaDB server package (MariaDB-server-10.1.19-1.el7.centos.x86_64) is installed.
Upgrading directly from MySQL 10.1 to MariaDB 10.5 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.5.18-1.el7.centos.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package MariaDB-server-10.5.18-1.el7.centos.x86_64
error: MariaDB-server-10.5.18-1.el7.centos.x86_64: install failed
error: MariaDB-server-10.1.19-1.el7.centos.x86_64: erase skipped
Nettoyage : MariaDB-client-10.5.8-1.el7.centos.x86_64 3/4
Vérification : MariaDB-client-10.5.18-1.el7.centos.x86_64 1/4
Vérification : MariaDB-server-10.5.18-1.el7.centos.x86_64 2/4
MariaDB-server-10.1.19-1.el7.centos.x86_64 was supposed to be removed but is not!
Vérification : MariaDB-server-10.1.19-1.el7.centos.x86_64 3/4
Vérification : MariaDB-client-10.5.8-1.el7.centos.x86_64 4/4
Mis à jour :
MariaDB-client.x86_64 0:10.5.18-1.el7.centos
Échec:
MariaDB-server.x86_64 0:10.1.19-1.el7.centos MariaDB-server.x86_64 0:10.5.18-1.el7.centos
I’ll try again another day after i read how to manually upgrade mariadb.
Hello,
The first times I followed that documentation line > Got the Error 404 on the repo, that’s why I tried another way.
I tried again with the official doc and still getthe error 404.
Will look for a way to report that to mariadb
Hi,
For the MariaDB repo, could you try with this command:
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=7 --mariadb-server-version="mariadb-10.5"
By the way, you need to upgrade your MariaDB with all versions.
10.1 to 10.2 then 10.2 to 10.3….., not directly from 10.1 to 10.5
Well i sopke too quickly, arrived at the webconf part i had a message indicating that mariadb was in 10.3 instead of 10.5...So i updated (https://mariadb.com/docs/ent/service-management/upgrades/community-server/release-series-cs10-5/), and…………… “URL not found” on http://ipserver/centreon/install/upgrade.php
Hoppefully i backup server state before
By the way, you need to upgrade your MariaDB with all versions.
10.1 to 10.2 then 10.2 to 10.3….., not directly from 10.1 to 10.5
Hi,
Sorry for long delay for answer,
Ok thank you, i’ll look into ‘how upgrade mariadb’ and will try again the centreon update.
Will keep the topic up to date once i’m done.