CentOS 6.4. install MariaDB 10.3
This article describes how to use yum to install MariaDB 10.3 on CentOS 6.4
1. Create a mysql group
Groupadd mysql
two。 Create a mysql user and add to the mysql group
Useradd-g mysql mysql
3. Modify 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 install MariaDB
Yum-y install MariaDB-server MariaDB-client
The installation results are as follows:
Installed:
MariaDB-client.x86_64 0VR 10.3.7-1.el6
MariaDB-compat.x86_64 0VR 10.3.7-1.el6
MariaDB-server.x86_64 0VR 10.3.7-1.el6
Dependency Installed:
MariaDB-common.x86_64 0VR 10.3.7-1.el6
Boost-program-options.x86_64 0RO 1.41.0-28.el6
Galera.x86_64 0Rom 25.3.23-1.rhel6.el6
Libaio.x86_64 0RO 0.3.107-10.el6
Lsof.x86_64 0RO 4.82-5.el6
Make.x86_64 1RO 3.81-23.el6
Perl.x86_64 4VR 5.10.1-144.el6
Perl-DBI.x86_64 0RO 1.609-4.el6
Perl-Module-Pluggable.x86_64 1Rank 3.90-144.el6
Perl-Pod-Escapes.x86_64 1purl 1.04-144.el6
Perl-Pod-Simple.x86_64 1Rank 3.13-144.el6
Perl-libs.x86_64 4VR 5.10.1-144.el6
Perl-version.x86_64 3RZ 0.77-144.el6
Rsync.x86_64 0RO 3.0.6-12.el6
Dependency Updated:
Openssl.x86_64 0:1.0.1e-57.el6
Replaced:
Mysql-libs.x86_64 0RO 5.1.66-2.el6_3
Complete!
6. Modify the root password of MariaDB database
Mysqladmin-u root password "123456"
7. Start / stop / restart MariaDB service command
Sudo-u mysql service mysql start | stop | restart