MariaDB 10.6 is the current long-term support stable release of MariaDB database server. It’s free and open-source software (FOSS) which actually based on MySQL, so you can use and distribute it freely without any costs.

Well, on this article I will teach you on how to install MariaDB 10.6 on Alibaba Elastic Compute Instance running OS distro Debian 11 (bulseye). However, before doing it make sure to fill the following requirenment.


* Alibaba ECS Instance Running OS Debian 11 (bullseye)
* Server IPv4 Address
* Superuser Privileges (Root Access)
* Gnome Terminal for Linux Desktop
* PuTTy SSH Client for Windows or MacOS

1.) Login to the SSH Console with the following command.

> ssh [email protected] -p22

NOTE: Change with your actual server IPv4 address
p22 stand for port 22, it’s default SSH port number
You can change 22 with your active SSH port number

2.) Install Some Packages Dependency

> apt-get install software-properties-common dirmngr apt-transport-https

3.) Import MariaDB Signing Key

> apt-key adv --fetch-keys ''

4.) Add MariaDB 10.6 repository into your Alibaba ECS instance. I will use “Yamagata University, Yonezawa” for mirror to download MariaDB 10.6 repository since my ECS instance is hosted on Alibaba Tokyo Datacenter.

> add-apt-repository 'deb [arch=amd64,i386,arm64,ppc64el] bullseye main'

5.) Run system update and let’s install MariaDB 10.6 database server. Simply run the following command.

> apt-get update
> apt-get install mariadb-server

6.) Enable MariaDB to start from boot and then start the service

> systemctl enable mysql.service
> systemctl start mysql.service

7.) Secure your MariaDB 10.6 Ecosystem with the following command.

> mysql_secure_installation

During the securing or hardening your MariaDB 10.6 database server don’t forget to set correct administrative account password (ROOT) for your MySQL account.

Previous articleHow To Install NGINX v1.21.6 Mainline Branch on AlmaLinux 8.5
Next articleHow To Install MultiPHP-FPM (PHP 7.4, PHP 8.0, & PHP 8.1) on Debian 11 “bullseye”


Please enter your comment!
Please enter your name here
Captcha verification failed!
CAPTCHA user score failed. Please contact us!

This site uses Akismet to reduce spam. Learn how your comment data is processed.