Re: Unable to upgrade Mariadb

From: Miroslav Lachman <000.fbsd_at_quip.cz>
Date: Sat, 20 May 2023 20:06:38 UTC
On 20/05/2023 19:40, Xavier Humbert wrote:
> Le 5/20/23 11:58, Xavier Humbert a écrit :

> Il eventually manage to upgrade by deleting mariadb104-server first, the 
> upgrading the client, then reinstallin mariadb105-server
> 
> This is not satifying
> 
> But now, I have this error :
> 
> [root@numenor ~]# mariadb-upgrade -p -v
> Enter password:
> Looking for 'mariadb' as: mariadb
> Looking for 'mariadb-check' as: mariadb-check
> Error: Server version (10.4.28-MariaDB) does not match with the version of
> the server (10.5.19-MariaDB) with which this program was 
> built/distributed. You can
> use --skip-version-check to skip this check.
> FATAL ERROR: Upgrade failed
> [root@numenor ~]# pkg info mariadb\*
> mariadb105-client-10.5.19
> mariadb105-server-10.5.19

It seems like you didn't stop the MariaDB server before doing the upgrade.

Try to stop it with
    # service mysql-server stop

and the list running processes
    # ps auxww | egrep 'mariadb|mysql'

I think mariadb will not stop with newer rc script and you will need to 
kill it manually.

Kind regards
Miroslav Lachman