ubuntu 18.04 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 10.2 ubuntu 16.04
sudo apt update
sudo apt install mariadb-server