MariaDB官方仓库:https://downloads.mariadb.org/mariadb/repositories/

笔记一些东西:

apt-get update && \
apt-get install -y software-properties-common && \
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 && \
add-apt-repository 'deb [arch=amd64] http://mirrors.aliyun.com/mariadb/repo/10.2/ubuntu/ bionic main'

apt-get install -y mariadb-server-10.2

mysql_secure_installation

sed -i '/\[mysqld\]/a\performance_schema = off' /etc/mysql/my.cnf

systemctl restart mariadb.service