install mariadb code example

Example 1: ubuntu install mariadb

sudo apt update
sudo apt-get -y install mariadb-server
sudo mysql_secure_installation
sudo systemctl start mariadb
sudo systemctl enable mariadb

Example 2: install mariadb

sudo apt update
sudo apt-get -y install mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb

Example 3: install mariadb-server rpm

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

Example 4: ubuntu install MariaDB

sudo add-apt-repository "deb [arch=amd64,arm64,ppc64el] http://mariadb.mirror.liquidtelecom.com/repo/10.4/ubuntu $(lsb_release -cs) main"

Tags:

Misc Example