centos7.0安装mariadb10.0.20

1.创建yum源

  cd /etc/yum.repos.d

  touch MariaDB.repo

  vim MariaDB.repo 

  在MariaDB.repo中加入如下内容

# MariaDB 10.0 CentOS repository list - created 2014-09-28 09:10 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

2.安装mariadb10.0.20

  yum -y install MariaDB-service MariaDB-client

3.启动MariaDB

 service mysql start

4.修改密码

  mysqladmin -uroot -p password ‘xxxxxx’

你可能感兴趣的:(centos7.0安装mariadb10.0.20)