Обновление MariaDB 5 до MariaDB 10 в CentOS/RHEL 7

systemctl stop mariadb
systemctl stop httpd

cp -a /var/lib/mysql/ /var/lib/mysql.bak

touch /etc/yum.repos.d/MariaDB10.repo

# MariaDB 10.4 CentOS repository list - created 2020-04-06 17:16 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

yum update

systemctl start mariadb
systemctl start httpd

mysql_upgrade

mysql > SELECT VERSION();

Добавить комментарий