This guide is to help you get MariaDB 10.6 running on CentOS 7 / Install MariaDB 10.6 on Ubuntu 18.04 server?. As of this writing, the latest stable release of MariaDB is 10.6. The default version of MariaDB installed on CentOS 7 is 5.5 and MariaDB 10.1 for Ubuntu 18.04. These versions are available on OS upstream repositories.
Before you can install MariaDB 10.6, you may need to uninstall the current version of MariaDB server. You can ignore this if upgrading. On Ubuntu, run:
sudo apt-get remove mariadb-serverFor CentOS 7, run:
sudo yum remove mariadb-serverInstall MariaDB 10.6 on Ubuntu 18.04
To install MariaDB 10.6 on Ubuntu 18.04, you need to add MariaDB repository on to the system.
Step 1: Install software-properties-common if missing:
Install the software-properties-common package which provides add-apt-repository command:
sudo apt-get install software-properties-commonStep 2: Import MariaDB gpg key:
Run the command below to add Repository Key to the system