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 188.8.131.52 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 'https://mariadb.org/mariadb_release_signing_key.asc'
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] https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/repo/10.6/debian 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.
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.