??MariaDB是MySQL开源项目的另一个分支,今天,我们来简要介绍一下如何在Ubuntu 16.04 LTS上安装MariaDB。
- prepare
sudo apt install install software-properties-common dirmngr apt-transport-https
- add key
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
- add sources
sudo tee /etc/apt/sources.list.d/mariadb.list <<-'EOF' deb https://mirrors.aliyun.com/mariadb/repo/10.3/ubuntu xenial main EOF
- update
apt update
- install
sudo apt-get install mariadb-server