[root@plesk ~]# ./mariadb-10.5-upgrade.sh
Dumping all databases
stopping MariaDB service
creating backup of mysql directory
removing mysql-server package in case it exists
errore: il pacchetto MariaDB-server-10.3.31-1.el7.centos.x86_64
MariaDB-server-10.3.31-1.el7.centos.x86_64 non è stato installato
Upgrading MariaDB
Plugin abilitati:fastestmirror
Loading mirror speeds from cached hostfile
* atomic: mirrors.thzhost.com
* base: mirrors.prometeus.net
* extras: mirrors.prometeus.net
* updates: mirrors.prometeus.net
mariadb | 3.4 kB 00:00:00
Il pacchetto MariaDB-client-10.5.13-1.el7.centos.x86_64 è già installato e aggiornato all'ultima versione
Il pacchetto MariaDB-compat-10.5.13-1.el7.centos.x86_64 è già installato e aggiornato all'ultima versione
Il pacchetto MariaDB-shared-10.5.13-1.el7.centos.x86_64 è già installato e aggiornato all'ultima versione
Risoluzione dipendenze
--> Esecuzione del controllo di transazione
---> Pacchetto MariaDB-server.x86_64 0:10.3.31-1.el7.centos settato per essere aggiornato
---> Pacchetto MariaDB-server.x86_64 0:10.5.13-1.el7.centos settato per essere un aggiornamento
--> Risoluzione delle dipendenze completata
Dipendenze risolte
================================================================================================================================================================================================================
Package Arch Versione Repository Dim.
================================================================================================================================================================================================================
Aggiornamento:
MariaDB-server x86_64 10.5.13-1.el7.centos mariadb 26 M
Riepilogo della transazione
================================================================================================================================================================================================================
Upgrade 1 Pacchetto
Dimensione totale del download: 26 M
Downloading packages:
No Presto metadata available for mariadb
MariaDB-server-10.5.13-1.el7.centos.x86_64.rpm | 26 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
******************************************************************
A MySQL or MariaDB server package (MariaDB-server-10.3.31-1.el7.centos.x86_64) is installed.
Upgrading directly from MySQL 10.3 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.13-1.el7.centos.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package MariaDB-server-10.5.13-1.el7.centos.x86_64
MariaDB-server-10.3.31-1.el7.centos.x86_64 was supposed to be removed but is not!
Verifica in corso : MariaDB-server-10.3.31-1.el7.centos.x86_64 1/2
Verifica in corso : MariaDB-server-10.5.13-1.el7.centos.x86_64 2/2
Fallito:
MariaDB-server.x86_64 0:10.3.31-1.el7.centos MariaDB-server.x86_64 0:10.5.13-1.el7.centos
Completo!
This installation of MySQL is already upgraded to 10.3.31-MariaDB, use --force if you still need to run mysql_upgrade
Informing Plesk of the changes (plesk sbin packagemng -sdf)