MySQLの上位互換「MariaDB 10.3」をUbuntuにインストールしてみよう

MySQLの上位互換である「MariaDB 10.3」のインストール方法について解説します。
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1

curl -sS | sudo bash
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get install mariadb-server mariadb-client
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/ line 76.)
debconf: falling back to frontend: Readline
Configuring mariadb-server-10.3

While not mandatory, it is highly recommended that you set a password for the MariaDB administrative "root" user.

If this field is left blank, the password will not be changed.

New password for the MariaDB "root" user: 

Repeat password for the MariaDB "root" user: 
Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/ → /lib/systemd/system/mariadb.service
sudo systemctl status mariadb
sudo systemctl is-enabled mariadb
sudo systemctl enable mariadb
sudo systemctl stop mariadb
sudo systemctl restart mariadb