AlexanderNL
Verified User
- Joined
- Feb 17, 2025
- Messages
- 26
With someone trying to update MariaDB, but on some way it will not updating
#LinuxVersion
cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
First in DirectAdmin:
The version was not been updated, it was also on 10.6.21.
In ssh:
Now I'm curious whether more people recognize this problem and how I can solve it...
#LinuxVersion
cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
First in DirectAdmin:
Code:
Installing MariaDB
warning: MariaDB-client-10.6.22-1.el8.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID c74cd1d8: NOKEY
Verifying... ########################################
Preparing... ########################################
Updating / installing...
MariaDB-common-10.6.22-1.el8 ########################################
MariaDB-shared-10.6.22-1.el8 ########################################
MariaDB-client-10.6.22-1.el8 ########################################
MariaDB-server-10.6.22-1.el8 ########################################
MariaDB-devel-10.6.22-1.el8 ########################################
MariaDB-backup-10.6.22-1.el8 ########################################
Created symlink /etc/systemd/system/mysql.service -> /etc/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service -> /etc/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service -> /etc/systemd/system/mariadb.service.
Ensuring local-infile is disabled for security reasons in MySQL configuration file...
Giving mysqld a few seconds to start up...
This installation of MariaDB is already upgraded to 10.6.20-MariaDB.
There is no need to run mysql_upgrade again for 10.6.22-MariaDB, because they're both 10.6.
You can use --force if you still want to run mysql_upgrade
Restarting MySQL.
Installation completed.
The version was not been updated, it was also on 10.6.21.
In ssh:
Code:
[root@server custombuild]# cd /usr/local/directadmin/custombuild
[root@server custombuild]# mv mysql_backups mysql_backups.`date +%F`
[root@server custombuild]# mysql_upgrade --defaults-extra-file=/usr/local/directadmin/conf/my.cnf --force --skip-version-check
[root@server custombuild]# mysql -V
mysql Ver 15.1 Distrib 10.6.21-MariaDB, for linux-systemd (x86_64) using readline 5.1
[root@server custombuild]# mysql_upgrade --defaults-extra-file=/usr/local/directadmin/conf/my.cnf --force
Error: Server version (10.6.22-MariaDB)
does not match the version of the server (10.6.21-MariaDB)
with which this program was built/distributed. You can
use --skip-version-check to skip this check.
FATAL ERROR: Upgrade failed
[root@server custombuild]# mysql_upgrade --defaults-extra-file=/usr/local/directadmin/conf/my.cnf --force --skip-version-check
[root@server custombuild]# mysql -V
mysql Ver 15.1 Distrib 10.6.21-MariaDB, for linux-systemd (x86_64) using readline 5.1
[root@server custombuild]# reload mysql
-bash: reload: command not found
[root@server custombuild]# mysql_upgrade --skip-version-check --defaults-extra-file=/usr/local/directadmin/conf/my.cnf --force
mysql_upgrade: unknown variable 'defaults-extra-file=/usr/local/directadmin/conf/my.cnf'
[root@server custombuild]# mysql_upgrade --defaults-extra-file=/usr/local/directadmin/conf/my.cnf --skip-version-check --force
[root@server custombuild]# mysql -V
mysql Ver 15.1 Distrib 10.6.21-MariaDB, for linux-systemd (x86_64) using readline 5.1
[root@server custombuild]# mysql_upgrade --skip-version-check -u** -p** --force
da build clean
da build update
da build update_versions
Created symlink /etc/systemd/system/mysql.service -> /etc/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service -> /etc/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service -> /etc/systemd/system/mariadb.service.
Giving mysqld a few seconds to start up...<br>This installation of MariaDB is already upgraded to 10.6.21-MariaDB.<br>There is no need to run mysql_upgrade again for 10.6.22-MariaDB, because they're both 10.6.<br>You can use --force if you still want to run mysql_upgrade<br>Restarting MySQL.<br>Installation completed.<br>[root@server custombuild]# mysql -V<br>mysql Ver 15.1 Distrib 10.6.21-MariaDB, for linux-systemd (x86_64) using readline 5.1
Now I'm curious whether more people recognize this problem and how I can solve it...