How to upgrade MariaDB from 5 to 10 in Enterprise Linux (RHEL/CentOS/Oracle Linux etc.) with Data



How to upgrade MariaDB from 5 to 10 in Enterprise Linux (RHEL/CentOS/Oracle Linux etc.) with Data

How to upgrade MariaDB from 5 to 10 in Enterprise Linux (RHEL/CentOS/Oracle Linux etc.) with Data

This tutorial will demonstrate how to upgrade MariaDB from 5 to 10 in Enterprise Linux like RHEL, CentOS, Oracle Linux and others along with the existing Databases.

Please find the complete command used in this tutorials 👇👇👇

# Viewing MariaDB Version
rpm -q mariadb-server mariadb

# Create a MariaDB Repository to upgrade to MariaDB 10.5
vi /etc/yum.repos.d/mariadb10.repo

[mariadb10]
name = MariaDB-10
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

# Check the MariaDB-server and MariaDB-client Package is available or not
yum list MariaDB-server MariaDB-client

# Upgrade to MariaDB 5 to MariaDB 10
yum install MariaDB-server MariaDB-client

# Verify that MariaDB 10 has been installed
rpm -q MariaDB-server MariaDB-client