This article describes how to install MariaDB 10.3 in CentOS 6.4 using Yum
1. Create a MySQL Group
Groupadd MySQL
2. Create MySQL user and add to MySQL group
useradd-g MySQL MySQL
3. Modify the MySQL password
passwd MySQL
4. Configure 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 Installation mariadb
Yum-y Install Mariadb-server mariadb-client
The installation results are as follows:
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!
6. Modify the MARIADB database root password
mysqladmin-u root Password "123456"
7. Start/stop/restart MARIADB service command
sudo-u MySQL service MySQL Start|stop|restart
CentOS 6.4 Installation MariaDB 10.3