先安裝相關需要的套件
yum -y groupinstall "Development Tools" yum -y install epel-release yum -y install readline-devel zlib-devel libffi-devel libyaml-devel openssl-devel sqlite-devel yum -y install mariadb-server mariadb mariadb-devel
安裝後記得啟用資料庫
systemctl enable mariadb; systemctl restart mariadb;
並設定 mariadb 的帳號密碼
mysql_secure_installation