本文介绍如何使用yum在CentOS 6.4 安装 MariaDB 10.3
1. 创建MysqL组
groupadd MysqL
passwd MysqL
4. 配置 MariaDB 10.3 yum
vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.3 CentOS repository list - created 2018-06-01 02:02 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
5. yum安装MariaDB
yum -y install MariaDB-server MariaDB-client
安装结果如下:
Installed:
MariaDB-client.x86_64 0:10.3.7-1.el6
MariaDB-compat.x86_64 0:10.3.7-1.el6
MariaDB-server.x86_64 0:10.3.7-1.el6
Dependency Installed:
MariaDB-common.x86_64 0:10.3.7-1.el6
boost-program-options.x86_64 0:1.41.0-28.el6
galera.x86_64 0:25.3.23-1.rhel6.el6
libaio.x86_64 0:0.3.107-10.el6
lsof.x86_64 0:4.82-5.el6
make.x86_64 1:3.81-23.el6
perl.x86_64 4:5.10.1-144.el6
perl-DBI.x86_64 0:1.609-4.el6
perl-Module-Pluggable.x86_64 1:3.90-144.el6
perl-Pod-Escapes.x86_64 1:1.04-144.el6
perl-Pod-Simple.x86_64 1:3.13-144.el6
perl-libs.x86_64 4:5.10.1-144.el6
perl-version.x86_64 3:0.77-144.el6
rsync.x86_64 0:3.0.6-12.el6
Dependency Updated:
openssl.x86_64 0:1.0.1e-57.el6
Replaced:
MysqL-libs.x86_64 0:5.1.66-2.el6_3
Complete!
MysqLadmin -u root password "123456"
7. 启动/停止/重启 MariaDB服务命令