Debian 9 安装 MariaDB

2019-04-06  本文已影响0人  煮茶忘放糖

导入密钥并添加存储库:

sudo apt-get install software-properties-common dirmngr 
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] [http://mariadb.mirror.globo.tech/repo/10.3/debian](http://mariadb.mirror.globo.tech/repo/10.3/debian) stretch main'

安装MariaDB:

sudo apt-get update 
sudo apt-get install mariadb-server

备注:安装时会提示设置密码

也可以将MariaDB添加到源服务器地址列表文件中:

vim /etc/apt/sources.list.d/MariaDB.list

内容:

# MariaDB 10.3 repository list - created 2019-04-06 03:07 UTC
# http://downloads.mariadb.org/mariadb/repositories/
deb [arch=amd64,i386,ppc64el] http://mariadb.mirror.globo.tech/repo/10.3/debian stretch main
deb-src http://mariadb.mirror.globo.tech/repo/10.3/debian stretch main

其他系统安装方式:https://downloads.mariadb.org/mariadb/repositories/#mirror=globotech

上一篇下一篇

猜你喜欢

热点阅读