内容纲要

[code]
sudo apt-get -y install software-properties-common

### Ubuntu 16.04 / LinuxMint 18 ###

sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8

### Ubuntu 16.04 / LinuxMint 18 ###

sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main’

sudo apt-get update
sudo apt-get install mariadb-server mariadb-client
[/code]

访问数据库

[code]
mysql -u root -p
[/code]

[code]
sudo systemctl start mariadb
sudo systemctl stop mariadb

sudo systemctl status mariadb
[/code]

发表评论

电子邮件地址不会被公开。 必填项已用*标注