Linux installation of MariaDB database through Yum

  

Linux system for the MariaDB database this open source free small database is not unfamiliar, although many users know how to use the MariaDB database, but there are many users do not know how to Install the MariaDB database. Today Xiaobian will share with you how to install the MariaDB database.

Installation:

yum prepare a lamp environment, actually found yum version of mysql version 5.1.x is still in, so be prepared to replace MariaDB.

Configuration Source:

[root@localhost ~]# cat /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.0 CentOS repository list - created 2013 -08-23 13:08 UTC

# http://mariadb.org/mariadb/repositories/

[mariadb]

name = MariaDB

baseurl = http://yum.mariadb.org/10.0/centos6-amd64

gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck =1

Check source:

[root@localhost ~]# yum search mariadb

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile< Br>

* base: ftp.sjtu.edu.cn

* extras: mirrors.aliyun.com

* updates: mirrors.aliyun.com

= =========================================================== ==== N/S Matched: mariadb ================================================= ================

MariaDB-Galera-server.x86_64 : MariaDB: a very fast and robust SQL database ser Ver

MariaDB-Galera-test.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB-cassandra-engine.x86_64 : MariaDB: a very fast and robust SQL database server< Br>

MariaDB-client.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB-common.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB -compat.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB-connect-engine.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB-devel.x86_64 MariaDB: a very fast and robust SQL database server

MariaDB-oqgraph-engine.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB-server.x86_64 : MariaDB: a Very fast and robust SQL database server

MariaDB-shared.x86_64 : MariaDB: a very fast and robust SQL database server

MariaDB-test.x86_64 : MariaDB: a very fast and robust SQL database server

Name and summary matches only, use “search all” for everything.

Install database:

[root@localhost ~]# yum install MariaDB-server MariaDB-client

[root@localhost ~]# yum install MariaDB-*

Run database:

[root@localhost ~] # /etc/init.d/mysql start

Starting MySQL. SUCCESS!

[root@localhost ~]# mysql -V

mysql Ver 15.1 Distrib 10.0.17-MariaDB, for Linux (x86_64) using readline 5.1

This is the Linux system In the yum installation of the MariaDB database method, users in need to install it in this way.

Copyright © Windows knowledge All Rights Reserved