MariaDB官网提供了repository
https://downloads.mariadb.org/mariadb/repositories/#mirror=tuna
在这里可以查询到各类系统的安装方法,这里仅对Ubuntu 16.04 LTS讲解。
add key
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add sources
sudo sh -c 'echo "deb [arch=amd64,i386,ppc64el] http://mirrors.tuna.tsinghua.edu.cn/mariadb/repo/10.2/ubuntu xenial main" >> /etc/apt/sources.list.d/mariadb.list'
update
apt update
install
sudo apt-get install mariadb-server